Table of Contents

TileMap:getTile

Available since version: Gideros 2011.6

Description:

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

Syntax:

(number), (number), (number) = TileMap:getTile(x, y)

Parameters:

  • x: (number) The x-position of tile
  • y: (number) The y-position of tile

Return value:

  • number: x tile position of texture or nil if tile is not set
  • number: y tile position of texture or nil if tile is not set
  • number: flip flag (TileMap.FLIP_DIAGONAL, TileMap.FLIP_HORIZONTAL, TileMap.FLIP_VERTICAL) of tile or nil if tile is not set