tmCreate

Category: Tilemap

Syntax:

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


Parameters

Returns

Int



Summary

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

Takes widthInTiles (The width of the map, in tiles), heightInTiles (The height of the map, in tiles), tileW (The width of a tile, in pixels), tileH (The height of a tile, in pixels).

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

View detailed documentation online



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

BambooBasic © 2026 Michael Denathorn