Category: Tilemap
Syntax:
tmTileAt:Int(map:Int, layer:Int, worldX:Int, worldY:Int)
Int
Gets the tile at a world position, on any shape of map.
Takes map (The map's handle), layer (The layer's number, from tmAddLayer or tmGetLayer), worldX (The world x position, in pixels), worldY (The world y position, in pixels).
Returns: The tile id, or 0 if empty or outside the map.
View detailed documentation online
id = tmTileAt(map, ground, px, py)
BambooBasic © 2026 Michael Denathorn