Category: Tilemap
Syntax:
tmWorldToGridX:Double(map:Int, worldX:Double, worldY:Double)
Double
Turns a world position into a grid x. On other maps than isometric the two are the same.
Takes map (The map's handle), worldX (The world x position, in pixels), worldY (The world y position, in pixels).
Returns: The grid x position.
View detailed documentation online
gridX = tmWorldToGridX(map, wx, wy)
BambooBasic © 2026 Michael Denathorn