tmFill

Fills a rectangle of cells with a tile. Parts outside the map are skipped. Takes map (The map's handle), layer (The layer's number, from tmAddLayer or tmGetLayer), x (The tile column, from 0), y (The tile row, from 0), w (The width, in tiles), h (The height, in tiles), id (The tile id. 0 is empty, and ids from 1 are the tiles in the tileset). Returns nothing.

Tilemap

Parameters & Returns

Parameters

map Int
layer Int
x Int
y Int
w Int
h Int
id Int

Returns

Void

Quick Summary

Fills a rectangle of cells with a tile. Parts outside the map are skipped. Takes map (The map's handle), layer (The layer's number, from tmAddLayer or tmGetLayer), x (The tile column, from 0), y (The tile row, from 0), w (The width, in tiles), h (The height, in tiles), id (The tile id. 0 is empty, and ids from 1 are the tiles in the tileset). Returns nothing.

Technical Exegesis...

Fills a rectangle of cells with a tile. Parts outside the map are skipped.

See the Tilemaps guide.

Returns nothing.

Example

Example.bam
tmFill(map, ground, 0, 25, 200, 5, 1)