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.
System compare two values: abs(player.Y-sprite2.y) > 100
Develop games in your browser. Powerful, performant & highly capable.
Thanks LittleStain! I think you meant < and not >, but it works great!