Dev - Lua Libraries

Lua Command: s3sprite.setOrder

Parameters

Return Values

void

- no return values

Signature

s3sprite.setOrder(int spriteID, order order)

Description

Sets the rendering order (and optionally also the sorting layer) of the sprite with the given spriteID. The order of newly created sprites is 0 unless specified otherwise. A higher order means that the sprite is rendered later. This means that sprites with high IDs cover sprites with lower IDs.

Note:

See data types: order to learn how orders are specified!