Category: Tilemap — Layers
Syntax:
tmLayerTileset:Int(map:Int, layer:Int)
The tileset's handle, or 0 if it has none.
Gets the tileset a layer draws with. It is how you reach the tilesets of a loaded map. A loaded layer that uses several tilesets has them put together into one, with the ids Tiled uses across the map.
See the Tilemaps guide.
tiles = tmLayerTileset(map, tmGetLayer(map, "ground"))
BambooBasic © 2026 Michael Denathorn