Difference between revisions of "Sprite:getChildrenAtPoint"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2018.12.1<br/> '''<translate>Class</translate>:''' Sprite<br/> ===...")
 
Line 17: Line 17:
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (table) <translate>A list of Sprites that were found at that screen location.</translate><br/>
 
'''<translate>Returns</translate>''' (table) <translate>A list of Sprites that were found at that screen location.</translate><br/>
 +
 +
{{Sprite}}

Revision as of 01:07, 4 December 2019


Available since: Gideros 2018.12.1
Class: Sprite

Description


Returns the children Sprites that correspond to the given screen coordinates.

(table) = Sprite:getChildrenAtPoint(x,y,visible,nosubs)

Parameters

x: (number) x coordinate in global space.
y: (number) y coordinate in global space.
visible: (boolean) Only report visible sprites.
nosubs: (boolean) Don't report children of this sprite's children.

Return values

Returns (table) A list of Sprites that were found at that screen location.