getTileX(x) → {integer}
Convert a pixel value to a tile coordinate.
Parameters
Name | Type | Description |
---|---|---|
x | number | X position of the point in target tile (in pixels). |
Returns
integer -
The X map location of the tile.
- Source code: tilemap/TilemapLayer.js (Line 502)
Please login to continue.