Sprite:globalToLocal

From GiderosMobile
Revision as of 11:03, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Converts the x,y coordinates from the global to the sprite's (local) coordinates.<br /> <br />...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6

Description


Converts the x,y coordinates from the global to the sprite's (local) coordinates.


(number) (number), = Sprite:globalToLocal(xy,)

'x: (number) x coordinate of the global coordinate. '
'y: (number) y coordinate of the global coordinate. '
Returns (number) 1. x coordinate relative to the display object.
Returns (number) 2. y coordinate relative to the display object.