MoveSprite

Last Modified: 1/18/2021

Moves a Sprite to X, Y.

Arguments

NameTypeRequiredDescription
Sprite Integer Yes Sprite is the variable you prepared with AddSprite().
X Integer Yes The x-coordinate you want to move the Sprite to.
Y Integer Yes The y-coordinate you want to move the Sprite to.

Example

Syntax: MoveSprite <Sprite>, <X>, <Y>
    Dim a As Integer
    a = AddSprite(1,1)
    PropSprite a,1,0
    
    MoveSprite a,128,128

Remarks

The coordinates for the visible display for a Sprite begins at 128,128.

See Also

FreeSprite, FreeAllSprites, HideSprite, LinkSprite, PropSprite, ResizeSprite, ShiftSprite, AddSprite(), SpritePosX(), SpritePosY()