too many instances issue

Just started using Construct 2? Post your questions here

Post » Tue May 17, 2016 7:36 pm

Hello ,
a question from beginner in construct 2
I have too many instances for a rectangle with randomized color
the problem briefly , when my circle collide with any rectangle (it should take the color of the rectangle that collided with)
but it take another color , I don't know why
maybe it take a color of another instance not the one I collided with !!
B
16
S
6
G
2
Posts: 31
Reputation: 2,196

Post » Tue May 17, 2016 8:10 pm

How is the circle moving ?
Do you use 'is overlapping' ? Or 'on collison' ? A lil more info plz ? A picture mayby ? A capx ?

You cant have to many instance for it to stop working.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Tue May 17, 2016 9:10 pm

Hello
I am using onCollision not isOverlapping
check this image : http://i.imgur.com/haAkcF9.png
B
16
S
6
G
2
Posts: 31
Reputation: 2,196

Post » Tue May 17, 2016 9:14 pm

to understand more
I made this game with unity : https://www.youtube.com/watch?v=pdI7d6uJqgo
I am making the same game with construct 2 , OK!!
B
16
S
6
G
2
Posts: 31
Reputation: 2,196

Post » Tue May 17, 2016 9:25 pm

Oh sorry my bad - I forgot to add a simple stuff
it worked now
then , I don't know how to delete this thread
B
16
S
6
G
2
Posts: 31
Reputation: 2,196

Post » Tue May 17, 2016 9:30 pm

Ok, so you do ....

On (circle) collision with (block)
Take the value of an instance variable of block ....
use it to set the color of the circle

In 1 event

And the circle is moved by physics

?

Edit: oh no prob.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests