Top | Up (Sprite) | < Previous (SPROT) | Next (SPCOLOR) >
Changes the size of a sprite
SPSCALE sprite%,x_scale#,y_scale#
parameter | description |
---|---|
sprite% | sprite managment number |
x_scale# | x scale multiplier. 1 is normal size, 0.5 is half size, etc. Must not be negative |
y_scale# | y scale multiplier. |
Scaling is done before rotation.
It is possible to scale a sprite by a negative amount, but only using SPANIM.
SPSET 0,0
SPSCALE 0,20,10 'sprite is now 20x as wide and 10x as high
Error | Cause |
---|---|
Out of range | A negative number or NaN was used for the scale, Or the sprite number was less than 0 or greater than the maximum |
Illegal function call | Sprite doesn’t exist, or wrong number of arguments |