Dev Blog
Info
Dev
Overview
Definitions
Lua API
Data Types
Tutorials
Newsletter
Dev
Home
Data Types
Definitions
EntityDef
AttributeDef
Lua Libraries
s3sprite
Dev - Lua Libraries
Lua Command:
s3sprite
.
getPosition
Parameters
ASpriteObject
sprite
Return Values
int
x
int
y
Signature
int
x
,
int
y
= s3sprite.getPosition(
ASpriteObject
sprite
)
Description
Gets the position of
sprite
in pixels.
Note:
x
and
y
will both be 0 if
sprite
is no valid sprite instance.