Category: Tilemap
Syntax:
tmLayerCount:Int(map:Int)
Int
Counts a map's layers. Object layers and image layers from Tiled count too.
Takes map (The map's handle).
Returns: The number of layers.
View detailed documentation online
n = tmLayerCount(map)
BambooBasic © 2026 Michael Denathorn