tmLoad

Category: Tilemap — Maps

Syntax:

tmLoad:Int(path:String)


Parameters

Returns

The map's handle.



Summary

Loads a map exported from Tiled as JSON (.tmj), with its layers, tilesets and objects. On the web it loads in the background, so check tmLoaded before relying on it. The guide lists what is and isn't supported.

See the Tilemaps guide.



Example
map = tmLoad("Media/level.tmj")

BambooBasic © 2026 Michael Denathorn