tmSetLayerVisible

Category: Tilemap

Syntax:

tmSetLayerVisible:Void(map:Int, layer:Int, visible:Int)


Parameters

Returns

Void



Summary

Shows or hides a layer in tmDraw. A hidden layer still answers collision queries, so it can hold shapes alone.

Takes map (The map's handle), layer (The layer's number, from tmAddLayer or tmGetLayer), visible (1 to show, 0 to hide).

Returns nothing.

View detailed documentation online



Example
tmSetLayerVisible(map, shapes, False)

BambooBasic © 2026 Michael Denathorn