MoveSprite
Previous  Next

Description: Changes the location of a sprite

     Syntax:
     
MoveSprite <SpriteVariable>, <X>, <Y>

Part
Description
<SpriteVariable>
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

Notes: The visible area for a sprite starts at (128,128). Anywhere before these coordinates, and anywhere after the visible screen boundaries will move the sprite off screen.

Example:

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

        MoveSprite a, 128, 128