tmAddLayer

Category: Tilemap — Layers

Syntax:

tmAddLayer:Int(map:Int, name:String, tileset:Int)


Parameters

Returns

The layer's number, or -1 for a bad map.



Summary

Adds an empty layer on top of the others, drawn with this tileset.

See the Tilemaps guide.



Example
ground = tmAddLayer(map, "ground", tiles)

BambooBasic © 2026 Michael Denathorn