TileMap:setTile

From GiderosMobile
Revision as of 11:04, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Sets the index of the tile. The tile indices are starting from 1.<br /> <br /> <source lang="lu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6

Description


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

= TileMap:setTile(xytxtyflipcoloralpha,)

'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