Difference between revisions of "Sprite:setPosition"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
=== Description ===
 
=== Description ===
<br />
+
<translate><br />
 
Sets the x, y and z coordinates of the sprite.<br />
 
Sets the x, y and z coordinates of the sprite.<br />
<br />
+
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
 
  Sprite:setPosition(x,y,z)
 
  Sprite:setPosition(x,y,z)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''x''': (number) The new x coordinate of the sprite <br/>
+
'''x''': (number) <translate>The new x coordinate of the sprite</translate> <br/>
'''y''': (number) The new y coordinate of the sprite <br/>
+
'''y''': (number) <translate>The new y coordinate of the sprite</translate> <br/>
'''z''': (number) The new z coordinate of the sprite '''optional'''<br/>
+
'''z''': (number) <translate>The new z coordinate of the sprite</translate> '''optional'''<br/>

Revision as of 14:32, 23 August 2018

Available since: Gideros 2011.6

Description


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

 Sprite:setPosition(x,y,z)

Parameters

x: (number) The new x coordinate of the sprite
y: (number) The new y coordinate of the sprite
z: (number) The new z coordinate of the sprite optional