Dev - Lua Libraries

Lua Command: s3sprite.getOrder

Parameters

Return Values

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