Dev - Lua Libraries

Lua Command: s3sprite.setParent

Parameters

Return Values

void

- no return values

Signature

s3sprite.setParent(int spriteID, int parentID)

Description

Sets the parent of the sprite with the given spriteID to the sprite with the given parentID. Alternatively the current parent can be removed by using a negative value for parentID.

Note:

The position/size/scale/rotation/color of children is or can be affected when their parents are modified!