Xvel: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Undo revision 8955 by 189.6.164.220 (talk)
Jwaffe (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
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 [[defineprojecile]]), the speed of the actor should be multiplied by 2.5.
Note: An even value of xvel has some significance for sprite bridges (more investigation needed)
 
Sprite bridge flags in the player structure ([[spritebridge]] and [[sbs]]) will not be set unless xvel is even.


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

Latest revision as of 13:14, 29 November 2014

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

Note: An even value of xvel has some significance for sprite bridges (more investigation needed)

Sprite bridge flags in the player structure (spritebridge and sbs) will not be set unless xvel is even.