Xvel: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
m I haven't checked this statement
No edit summary
Line 1: Line 1:
'''xvel''' holds the forward/backward velocity of the sprite.  Positive values are forward, negative are backward.
'''xvel''' holds the forward/backward velocity of the sprite.  Positive values are forward, negative are backward.


The projectile doesn't move at the same speed as the normal actor, it moves faster. In order to make an actor move alongside a projectile (using [[define projecile]]), the speed of the actor should be multiplied by 2.5.
The velocite of a normal actor, projectile or player doesn't result the same determined by xvel.


[[Category:Sprite structure members]]
[[Category:Sprite structure members]]

Revision as of 18:47, 11 February 2009

xvel holds the forward/backward velocity of the sprite. Positive values are forward, negative are backward.

The velocite of a normal actor, projectile or player doesn't result the same determined by xvel.