Sprite:getChildrenAtPoint

From GiderosMobile
Revision as of 15:33, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 children

Return values

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