tmGridToWorldX

Category: Tilemap

Syntax:

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


Parameters

Returns

Double



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.

Takes map (The map's handle), gridX (The grid x position, in grid pixels), gridY (The grid y position, in grid pixels).

Returns: The world x position.

View detailed documentation online



Example
footX = tmGridToWorldX(map, gridX, gridY)

BambooBasic © 2026 Michael Denathorn