Available since: Gideros 2011.6
Class: Sprite


Adds a sprite as a child to this sprite. The child is added at the index position specified. Indices start from 1.

Sprites can have only one parent. Therefore if you add a child object that already has a different sprite as a parent, the sprite is removed from the child list of the other sprite and then added to this sprite.



child: (Sprite) the child sprite to add
index: (number) the index position to which the child is added