Telling the game an object is below or above another?

Get help using Construct 2

Post » Fri Jun 06, 2014 7:54 pm

Hey guys!

I'm hoping someone can tell me how to do this. It seems pretty simple but I can't get it to work right.

Is there a way to tell the game that essentially if: Object A is above Object B to then move object A to a layer above object B?

Is there a way to just compare the two values of each of these, and if it's above that object by a certain amount, it can then shift it's layer?

Any help is greatly appreciated!
B
4
Posts: 78
Reputation: 606

Post » Sat Jun 07, 2014 2:58 am

Try using this event :

Sprite - Pick top/bottom ---- Sprite - Move to top/bottom.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155


Return to How do I....?

Who is online

Users browsing this forum: David181 and 9 guests