tmTileYAt

Category: Tilemap

Syntax:

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


Parameters

Returns

Int



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.

Takes map (The map's handle), worldX (The world x position, in pixels), worldY (The world y position, in pixels).

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

View detailed documentation online



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

BambooBasic © 2026 Michael Denathorn