tmGetLayer

Category: Tilemap — Layers

Syntax:

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


Parameters

Returns

The layer's number, or -1 if there isn't one.



Summary

Finds a layer by name, useful with loaded maps.

See the Tilemaps guide.



Example
ground = tmGetLayer(map, "ground")

BambooBasic © 2026 Michael Denathorn