Ldist - EDukeWiki

# Ldist

From EDukeWiki

ldist <gamevar> <sprite1> <sprite2>

Calculates the 2D distance between two sprites. Only x and y values are taken into account.

<gamevar> is set to the distance between <sprite1> and <sprite2>.

Compare with dist, which uses x, y, and z coordinates.

Retrieved from "http://wiki.eduke32.com/w/index.php?title=Ldist&oldid=9446"
Categories:

- EDuke32 specific commands
- Sprite manipulation