Difference between revisions of "Sprite:setPosition"

From GiderosMobile
(formatting)
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/>
=== <translate>Description</translate> ===
+
 
<translate><br />
+
=== Description ===
Sets the x, y and z coordinates of the sprite.<br />
+
Sets the x, y and z coordinates of the sprite.
<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
Sprite:setPosition(x,y,z)
+
Sprite:setPosition(x,y,z)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''x''': (number) <translate>The new x coordinate of the sprite</translate> <br/>
+
=== Parameters ===
'''y''': (number) <translate>The new y coordinate of the sprite</translate> <br/>
+
'''x''': (number) the new x coordinate of the sprite<br/>
'''z''': (number) <translate>The new z coordinate of the sprite</translate> '''optional'''<br/>
+
'''y''': (number) the new y coordinate of the sprite<br/>
 +
'''z''': (number) the new z coordinate of the sprite '''optional'''<br/>
  
 
{{Sprite}}
 
{{Sprite}}

Revision as of 04:44, 26 August 2020

Available since: Gideros 2011.6
Class: Sprite

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