tmObjectRotation

Gets an object's rotation. 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 rotation, in degrees.

Tilemap

Parameters & Returns

Parameters

map Int
layerName String
index Int

Returns

Double

Quick Summary

Gets an object's rotation. 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 rotation, in degrees.

Technical Exegesis...

Gets an object's rotation.

See the Tilemaps guide.

Returns: The rotation, in degrees.

Example

Example.bam
r = tmObjectRotation(map, "things", i)