tmObjectTile

Category: Tilemap

Syntax:

tmObjectTile:Int(map:Int, layerName:String, index:Int)


Parameters

Returns

Int



Summary

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



Example
id = tmObjectTile(map, "things", i)

BambooBasic © 2026 Michael Denathorn