SecondBASIC Documentation v3
Home
/
Command Reference
/
ShiftSprite
ShiftSprite
Description:
Shifts the sprite relative to its position by <X>,<Y>.
Syntax:
ShiftSprite <X>, <Y>
Part
Description
<X>
Required. Sprite is shifted by <X> pixels on the x-axis.
<Y>
Required. Sprite is shifted by <Y> pixels on the y-axis.
Example
:
a = AddSprite(1,1)
PropSprite a,1,0
MoveSprite a,128,128
Sleep 50
ShiftSprite a,100,0