tmSetTile

Category: Tilemap

Syntax:

tmSetTile:Void(map:Int, layer:Int, x:Int, y:Int, id:Int)


Parameters

Returns

Void



Summary

Puts a tile in a cell, unflipped. Outside the map it does nothing.

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), id (The tile id. 0 is empty, and ids from 1 are the tiles in the tileset).

Returns nothing.

View detailed documentation online



Example
tmSetTile(map, ground, 5, 10, 3)

BambooBasic © 2026 Michael Denathorn