tmDrawLayer

Category: Tilemap — Drawing

Syntax:

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


Parameters

Returns

Nothing.



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.

See the Tilemaps guide.



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

BambooBasic © 2026 Michael Denathorn