tmGridToWorldX

Category: Tilemap — Map shapes

Syntax:

tmGridToWorldX:Double(map:Int, gridX:Double, gridY:Double)


Parameters

Returns

The world x position.



Summary

Turns a grid position into a world x. On an isometric map, move things in grid positions and use this to draw them. On other maps the two are the same.

See the Tilemaps guide.



Example
footX = tmGridToWorldX(map, gridX, gridY)

BambooBasic © 2026 Michael Denathorn