tmTileXAt

Category: Tilemap — Map shapes

Syntax:

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


Parameters

Returns

The column. It can be outside the map.



Summary

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

See the Tilemaps guide.



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

BambooBasic © 2026 Michael Denathorn