tmTileCentreX

Category: Tilemap

Syntax:

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


Parameters

Returns

Int



Summary

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

Takes map (The map's handle), x (The tile column, from 0), y (The tile row, from 0).

Returns: The world x position.

View detailed documentation online



Example
x = tmTileCentreX(map, cx, cy)

BambooBasic © 2026 Michael Denathorn