Category: Tilemap
Syntax:
tmLayerTileset:Int(map:Int, layer:Int)
Int
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.
Takes map (The map's handle), layer (The layer's number, from tmAddLayer or tmGetLayer).
Returns: The tileset's handle, or 0 if it has none.
View detailed documentation online
tiles = tmLayerTileset(map, tmGetLayer(map, "ground"))
BambooBasic © 2026 Michael Denathorn