Comparing two screen position values

Get help using Construct 2

Post » Mon Dec 30, 2013 4:10 am

How would I compare the Y values of two sprites? I want Sprite 1 to behave in a certain way when it is within a certain number of pixels of Sprite 2's Y position on screen.
B
4
Posts: 25
Reputation: 302

Post » Mon Dec 30, 2013 7:11 am

System compare two values: abs(player.Y-sprite2.y) > 100
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Dec 30, 2013 11:52 pm

Thanks LittleStain! I think you meant < and not >, but it works great!
B
4
Posts: 25
Reputation: 302


Return to How do I....?

Who is online

Users browsing this forum: dop2000, Google [Bot], JackTYGA, osek95, zill and 38 guests