Spriteflags: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
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 | sets the default flags 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/> | 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/> |
Revision as of 19:51, 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 default flags 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.