Category: Tilemap
Syntax:
tmObjectTile:Int(map:Int, layerName:String, index:Int)
Int
Gets the tile a tile object shows. tmDraw and tmDrawLayer draw these objects in the layer's place.
Takes map (The map's handle), layerName (The name of the object layer in Tiled), index (Which object in the layer, from 0).
Returns: The tile id, 0 for a shape object.
View detailed documentation online
id = tmObjectTile(map, "things", i)
BambooBasic © 2026 Michael Denathorn