Spriteflags: Difference between revisions
| mNo edit summary | No edit summary | ||
| Line 1: | Line 1: | ||
| '''spriteflags''' <picnum> <value> | |||
| '''spriteflags''' < | |||
| '''spriteflags''' <value> | |||
| '''spriteflags'''  | |||
| At game time, the per-tile value is XORed with the per-sprite value, i.e. the setting of one  | The first form is used outside of an actor code. It will set special flags to a tile. The values are the same as [[gameflags]]. | ||
| The second form is used inside of an actor code. It will set special flags for a sprite that exists in the map. The values are the same as [[htflags]]. | |||
| At game time, the per-tile value is XORed with the per-sprite value, i.e. the setting of one reverses the other. | |||
| The per-tile flags are also set by [[useractor]]. Meaning that the '''spriteflags''' should precede it, otherwise the values will be overwritten. | |||
| [[Category:Bitfields]] | [[Category:Bitfields]] | ||
| [[Category:EDuke32 specific commands]] | [[Category:EDuke32 specific commands]] | ||
| [[Category:Sprite manipulation]] | [[Category:Sprite manipulation]] | ||
Revision as of 23:34, 19 February 2020
spriteflags <picnum> <value>
spriteflags <value>
The first form is used outside of an actor code. It will set special flags to a tile. The values are the same as gameflags.
The second form is used inside of an actor code. It will set special flags for a sprite that exists in the map. The values are the same as htflags.
At game time, the per-tile value is XORed with the per-sprite value, i.e. the setting of one reverses the other.
The per-tile flags are also set by useractor. Meaning that the spriteflags should precede it, otherwise the values will be overwritten.
