tmWorldToGridX

Category: Tilemap — Map shapes

Syntax:

tmWorldToGridX:Double(map:Int, worldX:Double, worldY:Double)


Parameters

Returns

The grid x position.



Summary

Turns a world position into a grid x. On other maps than isometric the two are the same.

See the Tilemaps guide.



Example
gridX = tmWorldToGridX(map, wx, wy)

BambooBasic © 2026 Michael Denathorn