Category: Tilemap — Maps
Syntax:
tmLoad:Int(path:String)
The map's handle.
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.
map = tmLoad("Media/level.tmj")
BambooBasic © 2026 Michael Denathorn