SpritePosX()

Last Modified: 9/8/2021

Returns the X coordinate of a sprite.

Arguments

NameTypeRequiredDescription
Sprite Integer Yes The variable that was used in the AddSprite function.

Example

Syntax: SpritePosX(<Sprite>)
    a = AddSprite(1,1)
    PropSprite a,1,0
    MoveSprite a,200,200
    Print SpritePosX(a)

See Also

SpritePosY()