tmTileAt

Category: Tilemap — Queries

Syntax:

tmTileAt:Int(map:Int, layer:Int, worldX:Int, worldY:Int)


Parameters

Returns

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



Summary

Gets the tile at a world position, on any shape of map.

See the Tilemaps guide.



Example
id = tmTileAt(map, ground, px, py)

BambooBasic © 2026 Michael Denathorn