tmDrawLayer

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.

Tilemap

Parameters & Returns

Parameters

map Int
layer Int

Returns

Void

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

Technical Exegesis...

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.

Returns nothing.

Example

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