tmGetLayer

Category: Tilemap

Syntax:

tmGetLayer:Int(map:Int, name:String)


Parameters

Returns

Int



Summary

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



Example
ground = tmGetLayer(map, "ground")

BambooBasic © 2026 Michael Denathorn