tmObjectY

Category: Tilemap

Syntax:

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


Parameters

Returns

Int



Summary

Gets an object's y position in the world, as for tmObjectX.

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 y position, in pixels.

View detailed documentation online



Example
y = tmObjectY(map, "things", i)

BambooBasic © 2026 Michael Denathorn