tmObjectType

Category: Tilemap

Syntax:

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


Parameters

Returns

String



Summary

Gets an object's type (Tiled also calls it its class).

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 type, empty if it has none.

View detailed documentation online



Example
t = tmObjectType(map, "things", i)

BambooBasic © 2026 Michael Denathorn