tmFill
Category: Tilemap — Tiles
Syntax:
tmFill:Void(map:Int, layer:Int, x:Int, y:Int, w:Int, h:Int, id:Int)
Parameters
- map : Int - The map's handle.
- layer : Int - The layer's number, from tmAddLayer or tmGetLayer.
- x : Int - The tile column, from 0.
- y : Int - The tile row, from 0.
- w : Int - The width, in tiles.
- h : Int - The height, in tiles.
- id : Int - The tile id. 0 is empty, and ids from 1 are the tiles in the tileset.
Returns
Nothing.
Summary
Fills a rectangle of cells with a tile. Parts outside the map are skipped.
See the Tilemaps guide.
Example
tmFill(map, ground, 0, 25, 200, 5, 1)
BambooBasic © 2026 Michael Denathorn