Sprite:localToGlobal

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Available since: Gideros 2011.6
Class: Sprite

Description

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

(number), (number) = Sprite:localToGlobal(x,y)

Parameters

x: (number) x coordinate of the local coordinate
y: (number) y coordinate of the local coordinate

Return values

Returns (number) x coordinate relative to the display area
Returns (number) y coordinate relative to the display area