Top | Up (Sprite) | < Previous (SPOFS) | Next (SPSCALE) >
Rotates a sprite
SPROT sprite%, angle%
SPROT sprite% OUT angle%
parameter | description |
---|---|
sprite% | sprite management number |
angle% | the rotation angle, in degrees |
SPSET 0,0
SPOFS 0,100,100
SPROT 0,45
Error | Cause |
---|---|
Illegal function call | sprite doesn’t exist, or wrong number of arguments were used |
Out of range | a sprite number less than 0 or more than the highest sprite number was used |
Type mismatch | A non-number value was used for the sprite id or angle |