tmSetLayerAlpha

Sets a layer's see-through level. It multiplies with b2dSetAlpha. Takes map (The map's handle), layer (The layer's number, from tmAddLayer or tmGetLayer), alpha (0.0 is invisible, 1.0 is solid). Returns nothing.

Tilemap

Parameters & Returns

Parameters

map Int
layer Int
alpha Double

Returns

Void

Quick Summary

Sets a layer's see-through level. It multiplies with b2dSetAlpha. Takes map (The map's handle), layer (The layer's number, from tmAddLayer or tmGetLayer), alpha (0.0 is invisible, 1.0 is solid). Returns nothing.

Technical Exegesis...

Sets a layer's see-through level. It multiplies with b2dSetAlpha.

See the Tilemaps guide.

Returns nothing.

Example

Example.bam
tmSetLayerAlpha(map, water, 0.6)