Category: Tilemap
Syntax:
tmWorldToTileY:Int(map:Int, worldY:Int)
Int
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.
Takes map (The map's handle), worldY (The world y position, in pixels).
Returns: The row. It can be outside the map.
View detailed documentation online
cy = tmWorldToTileY(map, camY + inpGetMouseY())
BambooBasic © 2026 Michael Denathorn