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
.
getOrder
Parameters
int
spriteID
Return Values
int
sortingLayer
int
order
Signature
int
sortingLayer
,
int
order
= s3sprite.getOrder(
int
spriteID
)
Description
Gets the
sortingLayer
and rendering
order
of the sprite with the given
spriteID
. See
s3sprite.setOrder
for details.
Note:
This function returns two separate values!
Warning:
sortingLayer
and
order
will be 0 if there is not sprite with ID
spriteID