Difference between revisions of "Sprite:localToGlobal"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | <languages /> | ||
'''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
'''<translate>Class</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/> | '''<translate>Class</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/> |
Revision as of 09:57, 3 September 2018
Available since: Gideros 2011.6
Class: Sprite
Description
Converts the x,y coordinates from the sprite's (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) 1. x coordinate relative to the display area.
Returns (number) 2. y coordinate relative to the display area.