Category: Tilemap — Objects
Syntax:
tmObjectCount:Int(map:Int, layerName:String)
The number of objects, 0 if there is no such layer.
Counts the objects in one of Tiled's object layers.
See the Tilemaps guide.
For i:Int = 0 To tmObjectCount(map, "things") - 1
Spawn(tmObjectType(map, "things", i), tmObjectX(map, "things", i), tmObjectY(map, "things", i))
Next
BambooBasic © 2026 Michael Denathorn