know distance X between two objects, for when
be greater than the distance 10 something happens
Develop games in your browser. Powerful, performant & highly capable.
System.compare2values(distance(player.x,player.y,objecttocompare.x,objecttocomaore.y) > 10)
--> do something
not working need an example please
Extract from the how do I FAQ
eneral/Misc questions
Checking the distance between two instances - LINK