Xrepeat: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
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:


setactor[THISACTOR].xrepeat 40
setactor[THISACTOR].xrepeat 40
setactor[THISACTOR].yrepeat 40


setactor[THISACTOR].yrepeat 40
is equivalent to
 
sizeat 40 40
 
In the [[Members of the wall structure|wall]] struct, xrepeat and yrepeat are the size\stretch of the texture used (if any).


is equivalent to
See [[sizeat]] and [[sizeto]].


sizeat 40 40
[[Category:Sprite structure members]]
[[Category:Wall structure members]]

Revision as of 18:09, 5 October 2006

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

In the wall struct, xrepeat and yrepeat are the size\stretch of the texture used (if any).

See sizeat and sizeto.