Many instancies, one position check

Get help using Construct 2

Post » Wed Nov 09, 2011 8:46 pm

Hello !
First, sorry for my poor english ! :)

Second, there is my question :
My game takes place in a sort of maze, with a top view. With ZQSD, you can move the character along the roads, and he has to stop when he arrives on a crossroad. So I compare the character's sprite position and the crossroad's sprite position.
But there is many crossroads in a maze, so, many instances of the crossroad sprite, and when I ask to compare my character's sprite position and the crossroad's sprite position, he just compares with the first crossroad sprite i placed in my scene, instead of all the instances.

How can I check for all the instances of the same sprite in the same time?

I suppose it's not very complicated... but... I didn't find :)Logun2011-11-09 20:47:29
B
3
G
1
Posts: 5
Reputation: 935

Post » Wed Nov 09, 2011 8:52 pm

use system under loops > for each
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Wed Nov 09, 2011 9:00 pm

It works perfectly ! Thank you, quick response and on target !

I am a beginner with construct, but it looks every time more cool !

bye
B
3
G
1
Posts: 5
Reputation: 935


Return to How do I....?

Who is online

Users browsing this forum: spcsmrf and 26 guests