tmWorldToGridY

Category: Tilemap

Syntax:

tmWorldToGridY:Double(map:Int, worldX:Double, worldY:Double)


Parameters

Returns

Double



Summary

Turns a world position into a grid y, as for tmWorldToGridX.

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

Returns: The grid y position.

View detailed documentation online



Example
gridY = tmWorldToGridY(map, wx, wy)

BambooBasic © 2026 Michael Denathorn