tmLoad

Category: Tilemap

Syntax:

tmLoad:Int(path:String)


Parameters

Returns

Int



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.

Takes path (The path of the .tmj file).

Returns: The map's handle.

View detailed documentation online



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

BambooBasic © 2026 Michael Denathorn