Xpanning

From EDukeWiki
Revision as of 06:23, 13 March 2011 by Helixhorned (talk | contribs) (be even more precise)
Jump to navigation Jump to search

xpanning allows you to pan, or shift, the image of a sprite the same way you would pan a ceiling, floor, or wall texture along the x axis. Values are normalized on a 0-255 scale, meaning that regardless of the sprite's size, a value of 128 will pan it 50%.

The CON wall[].xpanning refers to the struct member of the wall structure.

The CON actor[].xpanning field refers to the struct member of the spriteext structure, not the sprite member of the same name. Since spriteext is only used in the OpenGL renderers, it has no effect on classic mode.