tmLayerTileset

Category: Tilemap — Layers

Syntax:

tmLayerTileset:Int(map:Int, layer:Int)


Parameters

Returns

The tileset's handle, or 0 if it has none.



Summary

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.



Example
tiles = tmLayerTileset(map, tmGetLayer(map, "ground"))

BambooBasic © 2026 Michael Denathorn