tmObjectName

Gets an object's name. 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 name, empty if it has none.

Tilemap

Parameters & Returns

Parameters

map Int
layerName String
index Int

Returns

String

Quick Summary

Gets an object's name. 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 name, empty if it has none.

Technical Exegesis...

Gets an object's name.

See the Tilemaps guide.

Returns: The name, empty if it has none.

Example

Example.bam
n = tmObjectName(map, "things", i)