Xvel: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
Undo revision 8955 by 189.6.164.220 (talk)
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.


Not all actors move at the same speed. Useractor enemy use xvel at a different way.
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 [[defineprojecile]]), the speed of the actor should be multiplied by 2.5.


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

Revision as of 15:06, 24 May 2010

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 defineprojecile), the speed of the actor should be multiplied by 2.5.