tmTileYAt

Category: Tilemap — Map shapes

Syntax:

tmTileYAt:Int(map:Int, worldX:Int, worldY:Int)


Parameters

Returns

The cell's y. It can be outside the map.



Summary

Gets the row number of the cell at a world position, on any shape of map. This is the cell's y, not the drawing row that tmRowAt gives.

See the Tilemaps guide.



Example
cy = tmTileYAt(map, camX + inpGetMouseX(), camY + inpGetMouseY())

BambooBasic © 2026 Michael Denathorn