SecondBASIC Documentation v3

Home / Command Reference / MoveSprite


Description: Changes the location of a <Sprite>. Visible area for sprites starts at (128,128) and ends at (448,352) for NTSC and (448,368) for PAL systems.


MoveSprite <Sprite>, <X>, <Y>

Part Description
<Sprite> Required. This is the variable that was used with the AddSprite() function.
<X> Required. X-coordinate of the sprite.
<Y> Required. Y-coordinate of the sprite.


    Dim a As Integer
    a = AddSprite(1,1)
    PropSprite a, 1, 0
    MoveSprite a, 128, 128