Ldist: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
'''ldist''' <''distance''> <sprite1> <sprite2>
'''ldist''' <[[gamevar]]> <[[sprite id|sprite1]]> <[[sprite id|sprite2]]>


Calculates the 2D distance between two sprites, that is only x and y values are taken into account.
Calculates the 2D distance between two sprites, that is only x and y values are taken into account.


See [[dist]].
<[[gamevar]]> is set to the distance between <[[sprite id|sprite1]]> and <[[sprite id|sprite2]]>.
 
Compare with [[dist]], which uses x, y, and z coordinates.


[[Category:EDuke32 specific commands]]
[[Category:EDuke32 specific commands]]
[[Category:Sprite manipulation]]
[[Category:Sprite manipulation]]

Revision as of 17:17, 2 March 2011

ldist <gamevar> <sprite1> <sprite2>

Calculates the 2D distance between two sprites, that is 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.