tmGetTile

Gets the tile in a cell. Takes map (The map's handle), layer (The layer's number, from tmAddLayer or tmGetLayer), x (The tile column, from 0), y (The tile row, from 0). Returns: The tile id, or 0 if empty or outside the map.

Tilemap

Parameters & Returns

Parameters

map Int
layer Int
x Int
y Int

Returns

Int

Quick Summary

Gets the tile in a cell. Takes map (The map's handle), layer (The layer's number, from tmAddLayer or tmGetLayer), x (The tile column, from 0), y (The tile row, from 0). Returns: The tile id, or 0 if empty or outside the map.

Technical Exegesis...

Gets the tile in a cell.

See the Tilemaps guide.

Returns: The tile id, or 0 if empty or outside the map.

Example

Example.bam
id = tmGetTile(map, ground, 5, 10)