tmSetLayerVisible

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.

Tilemap

Parameters & Returns

Parameters

map Int
layer Int
visible Int

Returns

Void

Quick 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.

Technical Exegesis...

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

See the Tilemaps guide.

Returns nothing.

Example

Example.bam
tmSetLayerVisible(map, shapes, False)