Difference between revisions of "TileMap:setTile"

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 />
 
Sets the index of the tile. The tile indices are starting from 1.<br />
 
Sets the index of the tile. The tile indices are starting from 1.<br />
Line 8: Line 8:
 
  TileMap:setTile(x,y,tx,ty,flip,color,alpha)
 
  TileMap:setTile(x,y,tx,ty,flip,color,alpha)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''x''': (number) <translate>The x-position of tile</translate> <br/>
 
'''x''': (number) <translate>The x-position of tile</translate> <br/>
 
'''y''': (number) <translate>The y-position of tile</translate> <br/>
 
'''y''': (number) <translate>The y-position of tile</translate> <br/>

Revision as of 08:28, 24 August 2018

Available since: Gideros 2011.6

Description


Sets the index of the tile. The tile indices are starting from 1.

 TileMap:setTile(x,y,tx,ty,flip,color,alpha)

Parameters

x: (number) The x-position of tile
y: (number) The y-position of tile
tx: (number) The x-index of the tile
ty: (number) The y-index of the tile
flip: (number, default = 0) flip flag of tile. Can be combination of TileMap.FLIP_HORIZONTAL, TileMap.FLIP_VERTICAL and TileMap.FLIP_DIAGONAL
color: (number) Color tint of the tile, default to white (0xFFFFFF) optional
alpha: (number) Alpha tint of the tile, default to opaque (1.0) optional