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