tmSetTerrain

Category: Tilemap — Autotile

Syntax:

tmSetTerrain:Void(tileset:Int, terrain:Int, baseTile:Int, layout:Int)


Parameters

Returns

Nothing.



Summary

Makes a block of tiles in the tileset into a terrain, for tmSetTileAuto. The order the tiles have to be in is in the guide.

See the Tilemaps guide.



Example
tmSetTerrain(tiles, 1, 1, 47)

BambooBasic © 2026 Michael Denathorn