Spriteflags: Difference between revisions
Jump to navigation
Jump to search
Helixhorned (talk | contribs) rearrange wording of how the per-tile value and per-sprite value is XORed. |
Helixhorned (talk | contribs) Elaborate usage of spriteflags directive. |
||
Line 1: | Line 1: | ||
Inside actor, state, and event code,<br /> | Inside actor, state, and event code, the command<br /> | ||
'''spriteflags''' <value><br /> | '''spriteflags''' <value><br /> | ||
sets the [[htflags]] value for the current sprite. | sets the [[htflags]] value for the current sprite. | ||
Outside of actors, states, and events,<br/> | Outside of actors, states, and events, the directive<br/> | ||
'''spriteflags''' <picnum> <value> <br/> | '''spriteflags''' <picnum> <value> <br/> | ||
sets the same flags per-tile. | 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.<br/> | ||
For a particular actor tile, the '''spriteflags''' directive should precede its actor definition, as well as uses of other '''sprite*''' flag modification directives. | |||
[[Category:Bitfields]] | [[Category:Bitfields]] | ||
[[Category:EDuke32 specific commands]] | [[Category:EDuke32 specific commands]] | ||
[[Category:Sprite manipulation]] | [[Category:Sprite manipulation]] |
Revision as of 07:17, 15 March 2014
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.