SpritePosX()
Previous  Next

Description: Returns the x-coordinate of the <Sprite>.

     Syntax:
     
SpritePosX(<Sprite>)


Part
Description
<Sprite>
Required. This is the variable that was set as a sprite with the AddSprite and ProprSprite commands.

Example:

        a = AddSprite(1,1)
        PropSprite a,1, 0
        MoveSprite a, 200, 200
        Print SpritePosX(a)