Difference between revisions of "Sprite:getPosition"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[Sprite]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate><br />
+
Returns the x, y and z coordinates of the sprite.
Returns the x, y and z coordinates of the sprite.<br />
 
<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
 
(number), (number), (number) = Sprite:getPosition()
 
(number), (number), (number) = Sprite:getPosition()
 
</source>
 
</source>
=== <translate>Return values</translate> ===
+
 
'''<translate>Returns</translate>''' (number) <translate>The x coordinates of the sprite</translate><br/>
+
=== Return values ===
'''<translate>Returns</translate>''' (number) <translate>The y coordinates of the sprite</translate><br/>
+
'''Returns''' (number) the x coordinate of the sprite<br/>
'''<translate>Returns</translate>''' (number) <translate>The z coordinates of the sprite</translate><br/>
+
'''Returns''' (number) the y coordinate of the sprite<br/>
 +
'''Returns''' (number) the z coordinate of the sprite<br/>
  
 
{{Sprite}}
 
{{Sprite}}

Revision as of 18:06, 7 February 2023

Available since: Gideros 2011.6
Class: Sprite

Description

Returns the x, y and z coordinates of the sprite.

(number), (number), (number) = Sprite:getPosition()

Return values

Returns (number) the x coordinate of the sprite
Returns (number) the y coordinate of the sprite
Returns (number) the z coordinate of the sprite