tmGetTile

Category: Tilemap

Syntax:

tmGetTile:Int(map:Int, layer:Int, x:Int, y:Int)


Parameters

Returns

Int



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.

View detailed documentation online



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

BambooBasic © 2026 Michael Denathorn