tmObjectTile

Category: Tilemap — Objects

Syntax:

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


Parameters

Returns

The tile id, 0 for a shape object.



Summary

Gets the tile a tile object shows. tmDraw and tmDrawLayer draw these objects in the layer's place.

See the Tilemaps guide.



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

BambooBasic © 2026 Michael Denathorn