tmWorldToTileY

Category: Tilemap — Queries

Syntax:

tmWorldToTileY:Int(map:Int, worldY:Int)


Parameters

Returns

The row. It can be outside the map.



Summary

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.



Example
cy = tmWorldToTileY(map, camY + inpGetMouseY())

BambooBasic © 2026 Michael Denathorn