tmDrawLayerRow

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.

Tilemap

Parameters & Returns

Parameters

map Int
layer Int
row Int

Returns

Void

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

Technical Exegesis...

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.

See the Tilemaps guide.

Returns nothing.

Example

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