Difference between revisions of "TileMap:setTile"

From GiderosMobile
Line 18: Line 18:
 
'''color''': (number) <translate>Color tint of the tile, default to white (0xFFFFFF)</translate> '''optional'''<br/>
 
'''color''': (number) <translate>Color tint of the tile, default to white (0xFFFFFF)</translate> '''optional'''<br/>
 
'''alpha''': (number) <translate>Alpha tint of the tile, default to opaque (1.0)</translate> '''optional'''<br/>
 
'''alpha''': (number) <translate>Alpha tint of the tile, default to opaque (1.0)</translate> '''optional'''<br/>
 +
 +
{{TileMap}}

Revision as of 03:25, 4 December 2019


Available since: Gideros 2011.6
Class: TileMap

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