TilemapLayer#getTileXY()

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)
doc_phaser
2017-02-14 11:16:07
Comments
Leave a Comment

Please login to continue.