Spriteflags

From EDukeWiki
Revision as of 07:17, 15 March 2014 by Helixhorned (talk | contribs) (Elaborate usage of spriteflags directive.)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Inside actor, state, and event code, the command
spriteflags <value>
sets the htflags value for the current sprite.

Outside of actors, states, and events, the directive
spriteflags <picnum> <value>
sets the same flags per-tile. At game time, this per-tile value is XORed with the per-sprite value, i.e. the setting of one to "true" reverses the other.
For a particular actor tile, the spriteflags directive should precede its actor definition, as well as uses of other sprite* flag modification directives.