Distance issues, with multiple instances?

Get help using Construct 2

Post » Mon Dec 02, 2013 7:44 pm

I have an object that the player can approach, which changes the frame that it's currently on.

I'm using the distance(player.X,Player.Y,Sign.X,Sign.Y) < 100 currently.

It works just fine for the first sign, but it doesn't work when there are multiple instances of the same sign currently.

Is there a way to get this to work with multiple instances of the same object?
B
4
Posts: 78
Reputation: 606

Post » Mon Dec 02, 2013 7:57 pm

Yes there is. Put the distance check in a for each loop. See manual->system conditions (scroll down to "Loops")
Image
B
24
S
8
G
10
Posts: 1,821
Reputation: 8,279


Return to How do I....?

Who is online

Users browsing this forum: dop2000, Klarner and 27 guests