tmTileCentreX

Category: Tilemap — Map shapes

Syntax:

tmTileCentreX:Int(map:Int, x:Int, y:Int)


Parameters

Returns

The world x position.



Summary

Gets the world x of the middle of a cell, on any shape of map.

See the Tilemaps guide.



Example
x = tmTileCentreX(map, cx, cy)

BambooBasic © 2026 Michael Denathorn