SecondBASIC Documentation v3

Home / Function Reference / SpritePosX()

SpritePosX()

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

Syntax:

SpritePosX(<sprite>)

Part Description
<sprite> Required. This is the variable that was used with the AddSprite() function

Example:

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