Difference between revisions of "Sprite:localToGlobal"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2011.6<br/> | + | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate><br /> | <translate><br /> | ||
Converts the x,y coordinates from the sprite's (local) coordinates to the global coordinates.<br /> | Converts the x,y coordinates from the sprite's (local) coordinates to the global coordinates.<br /> | ||
Line 8: | Line 8: | ||
(number), (number) = Sprite:localToGlobal(x,y) | (number), (number) = Sprite:localToGlobal(x,y) | ||
</source> | </source> | ||
− | === Parameters === | + | === <translate>Parameters</translate> === |
'''x''': (number) <translate>x coordinate of the local coordinate.</translate> <br/> | '''x''': (number) <translate>x coordinate of the local coordinate.</translate> <br/> | ||
'''y''': (number) <translate>y coordinate of the local coordinate.</translate> <br/> | '''y''': (number) <translate>y coordinate of the local coordinate.</translate> <br/> | ||
− | === Return values === | + | === <translate>Return values</translate> === |
− | '''Returns''' (number) <translate>1. x coordinate relative to the display area.</translate><br/> | + | '''<translate>Returns</translate>''' (number) <translate>1. x coordinate relative to the display area.</translate><br/> |
− | '''Returns''' (number) <translate>2. y coordinate relative to the display area.</translate><br/> | + | '''<translate>Returns</translate>''' (number) <translate>2. y coordinate relative to the display area.</translate><br/> |
Revision as of 07:27, 24 August 2018
Available since: Gideros 2011.6
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.