Category: Tilemap
Syntax:
tmGetLayer:Int(map:Int, name:String)
Int
Finds a layer by name, useful with loaded maps.
Takes map (The map's handle), name (The layer's name).
Returns: The layer's number, or -1 if there isn't one.
View detailed documentation online
ground = tmGetLayer(map, "ground")
BambooBasic © 2026 Michael Denathorn