tmTileXAt

Category: Tilemap

Syntax:

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


Parameters

Returns

Int



Summary

Gets the column of the cell at a world position, on any shape of map. Use it with the mouse.

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

Returns: The column. It can be outside the map.

View detailed documentation online



Example
cx = tmTileXAt(map, camX + inpGetMouseX(), camY + inpGetMouseY())

BambooBasic © 2026 Michael Denathorn