Difference between revisions of "Sprite:setPosition"

From GiderosMobile
Line 8: Line 8:
 
  Sprite:setPosition(x,y,z)
 
  Sprite:setPosition(x,y,z)
 
</source>
 
</source>
'''x''': (number) The new x coordinate of the sprite ''''''<br/>
+
=== Parameters ===
'''y''': (number) The new y coordinate of the sprite ''''''<br/>
+
'''x''': (number) The new x coordinate of the sprite <br/>
 +
'''y''': (number) The new y coordinate of the sprite <br/>
 
'''z''': (number) The new z coordinate of the sprite '''optional'''<br/>
 
'''z''': (number) The new z coordinate of the sprite '''optional'''<br/>

Revision as of 10:40, 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