tmObjectProp

Gets one of an object's custom properties, as text. Takes map (The map's handle), layerName (The name of the object layer in Tiled), index (Which object in the layer, from 0), key (The property's name). Returns: The value as text, empty if it has none.

Tilemap

Parameters & Returns

Parameters

map Int
layerName String
index Int
key String

Returns

String

Quick Summary

Gets one of an object's custom properties, as text. Takes map (The map's handle), layerName (The name of the object layer in Tiled), index (Which object in the layer, from 0), key (The property's name). Returns: The value as text, empty if it has none.

Technical Exegesis...

Gets one of an object's custom properties, as text.

See the Tilemaps guide.

Returns: The value as text, empty if it has none.

Example

Example.bam
msg = tmObjectProp(map, "things", i, "message")