Ldist: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
m Categories
No edit summary
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''ldist''' calculates the 2D distance between two actors.
'''ldist''' <[[gamevar]]> <[[sprite id|sprite1]]> <[[sprite id|sprite2]]>


ldist <variable to return distance value to> <actor 1> <actor 2>
Calculates the 2D distance between two sprites.  Only x and y values are taken into account.
 
<[[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:Gamevar manipulation]]
[[Category:Sprite manipulation]]

Latest revision as of 17:18, 2 March 2011

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.