tmDrawLayer

Category: Tilemap

Syntax:

tmDrawLayer:Void(map:Int, layer:Int)


Parameters

Returns

Void



Summary

Draws one layer now. Draw a sprite between two calls and it goes between those layers. Only the tiles on screen cost anything. It takes b2dSetColor and b2dSetAlpha.

Takes map (The map's handle), layer (The layer's number, from tmAddLayer or tmGetLayer).

Returns nothing.

View detailed documentation online



Example
tmDrawLayer(map, ground)
b2dDrawImage(player, px - camX, py)
tmDrawLayer(map, front)

BambooBasic © 2026 Michael Denathorn