TileMap:getTile

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

Available since: Gideros 2011.6

Description


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

(number) (number) (number) (number) (number), = TileMap:getTile(xy,)

'x: (number) The x-position of tile '
'y: (number) The y-position of tile '
Returns (number) x tile position of texture or nil if tile is not set
Returns (number) y tile position of texture or nil if tile is not set
Returns (number) flip flag (TileMap.FLIP_DIAGONAL, TileMap.FLIP_HORIZONTAL, TileMap.FLIP_VERTICAL) of tile or nil if tile is not set
Returns (number) Color tint of the tile
Returns (number) Alpha tint of the tile