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