tmDrawLayerRow

Category: Tilemap

Syntax:

tmDrawLayerRow:Void(map:Int, layer:Int, row:Int)


Parameters

Returns

Void



Summary

Draws one row of a layer, so sprites can go in among the tiles. Rows run from the back to the front on every shape of map. A layer that isn't made of tiles (objects or an image) draws with row 0.

Takes map (The map's handle), layer (The layer's number, from tmAddLayer or tmGetLayer), row (The row, from 0 at the back. tmRowCount says how many there are).

Returns nothing.

View detailed documentation online



Example
For row:Int = 0 To tmRowCount(map) - 1
    tmDrawLayerRow(map, ground, row)
    If tmRowAt(map, footX, footY) = row Then b2dDrawImage(player, sx, sy)
Next

BambooBasic © 2026 Michael Denathorn