Xrepeat: Difference between revisions
Helixhorned (talk | contribs) added value range for xrepeat |
Hendricks266 (talk | contribs) No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
xrepeat and yrepeat are members of the sprite and wall structs, where they control sizes. The term "repeat" connotes "how much distance should there be before another copy of the tile were to be drawn". | |||
The range of values is 0 to 255, inclusive. | |||
==Sprite== | |||
xrepeat and yrepeat are the x and y scale of the sprite, respectively. These are the same values that are set by the [[sizeat]] command. Thus: | xrepeat and yrepeat are the x and y scale of the sprite, respectively. These are the same values that are set by the [[sizeat]] command. Thus: | ||
Line 8: | Line 14: | ||
sizeat 40 40 | sizeat 40 40 | ||
See [[sizeat]] and [[sizeto]]. | |||
Setting a sprite's xrepeat to 0 is almost equivalent to calling the [[killit]] command from that actor, except that unlike killit, code following the command will still run. As with killit, such an operation comes with caveats, so see that command's page for the more information. | |||
==Wall== | |||
In the [[Members of the wall structure|wall]] struct, xrepeat and yrepeat are the size\stretch of the texture used (if any). | |||
[[Category:Sprite structure members]] | [[Category:Sprite structure members]] | ||
[[Category:Wall structure members]] | [[Category:Wall structure members]] |
Latest revision as of 09:50, 26 May 2018
xrepeat and yrepeat are members of the sprite and wall structs, where they control sizes. The term "repeat" connotes "how much distance should there be before another copy of the tile were to be drawn".
The range of values is 0 to 255, inclusive.
Sprite
xrepeat and yrepeat are the x and y scale of the sprite, respectively. These are the same values that are set by the sizeat command. Thus:
setactor[THISACTOR].xrepeat 40 setactor[THISACTOR].yrepeat 40
is equivalent to
sizeat 40 40
Setting a sprite's xrepeat to 0 is almost equivalent to calling the killit command from that actor, except that unlike killit, code following the command will still run. As with killit, such an operation comes with caveats, so see that command's page for the more information.
Wall
In the wall struct, xrepeat and yrepeat are the size\stretch of the texture used (if any).