tmTileCentreX

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.

Tilemap

Parameters & Returns

Parameters

map Int
x Int
y Int

Returns

Int

Quick 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.

Technical Exegesis...

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

See the Tilemaps guide.

Returns: The world x position.

Example

Example.bam
x = tmTileCentreX(map, cx, cy)