Category: Tilemap — Objects
Syntax:
tmObjectX:Int(map:Int, layerName:String, index:Int)
The x position, in pixels.
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.
x = tmObjectX(map, "things", i)
BambooBasic © 2026 Michael Denathorn