Difference between revisions of "Sprite:removeChildAt"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Removes the child '''Sprite''' instance at the specifed index. Index of the first child is 1 and index of the last child can be get from the '''[[Sprite:getNumChildren]]''' function.
 
Removes the child '''Sprite''' instance at the specifed index. Index of the first child is 1 and index of the last child can be get from the '''[[Sprite:getNumChildren]]''' function.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Sprite:removeChildAt(index)
 
Sprite:removeChildAt(index)
 
</source>
 
</source>

Revision as of 14:31, 13 July 2023

Available since: Gideros 2011.6
Class: Sprite

Description

Removes the child Sprite instance at the specifed index. Index of the first child is 1 and index of the last child can be get from the Sprite:getNumChildren function. <syntaxhighlight lang="lua"> Sprite:removeChildAt(index) </source>

Parameters

index: (number) the child index of the sprite to remove