Category: Tilemap
Syntax:
tmTileXAt:Int(map:Int, worldX:Int, worldY:Int)
Int
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
cx = tmTileXAt(map, camX + inpGetMouseX(), camY + inpGetMouseY())
BambooBasic © 2026 Michael Denathorn