tmCreate

Category: Tilemap — Maps

Syntax:

tmCreate:Int(widthInTiles:Int, heightInTiles:Int, tileW:Int, tileH:Int)


Parameters

Returns

The map's handle, or 0 if a size isn't valid.



Summary

Makes an empty map. Add layers to it with tmAddLayer.

See the Tilemaps guide.



Example
map = tmCreate(200, 30, 16, 16)

BambooBasic © 2026 Michael Denathorn