Spriteflags: Difference between revisions
Jump to navigation
Jump to search
Helixhorned (talk | contribs) Elaborate usage of spriteflags directive. |
No edit summary |
||
Line 1: | Line 1: | ||
Inside actor, state, and event code, the command<br /> | Inside actor, state, and event code, the command<br /> | ||
'''spriteflags''' <value><br /> | '''spriteflags''' <value><br /> | ||
sets the [[htflags]] value for the | sets the [[htflags]] value for the currently executing sprite. | ||
Outside of actors, states, and events, the directive<br/> | Outside of actors, states, and events, the directive<br/> | ||
'''spriteflags''' <picnum> <value> <br/> | '''spriteflags''' <picnum> <value> <br/> | ||
sets the same flags per-tile. At game time, | sets the same flags as defaults on a per-tile basis. | ||
At game time, the 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. | 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 19:49, 10 March 2018
Inside actor, state, and event code, the command
spriteflags <value>
sets the htflags value for the currently executing sprite.
Outside of actors, states, and events, the directive
spriteflags <picnum> <value>
sets the same flags as defaults on a per-tile basis.
At game time, the 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.