Difference between revisions of "Sprite:getChildAt"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/>
+
'''Class:''' [[Sprite]]<br/>
=== <translate>Description</translate> ===
+
 
<translate><br />
+
=== Description ===
Returns the child `Sprite` instance that exists at the specified index. First child is at index 1.<br />
+
Returns the child '''Sprite''' instance that exists at the specified index. First child is at index 1.
<br /></translate>
+
<syntaxhighlight lang="lua">
<source lang="lua">
 
 
(Sprite) = Sprite:getChildAt(index)
 
(Sprite) = Sprite:getChildAt(index)
</source>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''index''': (number) <translate>The index position of the child object.</translate> <br/>
+
=== Parameters ===
=== <translate>Return values</translate> ===
+
'''index''': (number) the index position of the child object<br/>
'''<translate>Returns</translate>''' (Sprite) <translate>The child sprite at the specified index position.</translate><br/>
+
 
 +
=== Return values ===
 +
'''Returns''' (Sprite) the child sprite at the specified index position<br/>
 +
 
 +
{{Sprite}}

Latest revision as of 14:33, 13 July 2023

Available since: Gideros 2011.6
Class: Sprite

Description

Returns the child Sprite instance that exists at the specified index. First child is at index 1.

(Sprite) = Sprite:getChildAt(index)

Parameters

index: (number) the index position of the child object

Return values

Returns (Sprite) the child sprite at the specified index position