TileMap:getTile
From GiderosMobile
Available since: Gideros 2011.6
Class: TileMap
Description
Returns the index of the tile. The tile indices are starting from 1. <syntaxhighlight lang="lua"> (number), (number), (number), (number), (number) = TileMap:getTile(x,y) </source>
Parameters
x: (number) the x-position of tile
y: (number) the y-position of tile
Return values
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