Category: Tilemap — Queries
Syntax:
tmWorldToTileY:Int(map:Int, worldY:Int)
The row. It can be outside the map.
Turns a y position into a tile row on a square map. On an isometric map it takes a grid y. For a world position on those maps, use tmTileYAt.
See the Tilemaps guide.
cy = tmWorldToTileY(map, camY + inpGetMouseY())
BambooBasic © 2026 Michael Denathorn