getTileXY(x, y, point) → {Phaser.Point | object}
Convert a pixel coordinate to a tile coordinate.
Parameters
Name | Type | Description |
---|---|---|
x | number | X position of the point in target tile (in pixels). |
y | number | Y position of the point in target tile (in pixels). |
point | Phaser.Point | object | The Point/object to update. |
Returns
Phaser.Point | object -
A Point/object with its x
and y
properties set.
- Source code: tilemap/TilemapLayer.js (Line 532)
Please login to continue.