tmGetTile

Category: Tilemap — Tiles

Syntax:

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


Parameters

Returns

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



Summary

Gets the tile in a cell.

See the Tilemaps guide.



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

BambooBasic © 2026 Michael Denathorn