tmObjectX

Category: Tilemap — Objects

Syntax:

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


Parameters

Returns

The x position, in pixels.



Summary

Gets an object's x position in the world, ready to draw at. On an isometric map that isn't the number Tiled shows, which is a grid position.

See the Tilemaps guide.



Example
x = tmObjectX(map, "things", i)

BambooBasic © 2026 Michael Denathorn