Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

Latest commit

 

History

History
36 lines (28 loc) · 1.04 KB

SPSCALE.org

File metadata and controls

36 lines (28 loc) · 1.04 KB

Top | Up (Sprite) | < Previous (SPROT) | Next (SPCOLOR) >

SPSCALE

Changes the size of a sprite

Syntax

SPSCALE sprite%,x_scale#,y_scale#
parameterdescription
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.

Examples

SPSET 0,0
SPSCALE 0,20,10 'sprite is now 20x as wide and 10x as high

Possible Errors

ErrorCause
Out of rangeA negative number or NaN was used for the scale, Or the sprite number was less than 0 or greater than the maximum
Illegal function callSprite doesn’t exist, or wrong number of arguments

Top | Up (Sprite) | < Previous (SPROT) | Next (SPCOLOR) >