Converts from staggered tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the
layer's position, scale and scroll. This will return a new Vector2 object or update the given
point
object.
name | type | description |
---|---|---|
tileX | number |
The x coordinate, in tiles, not pixels. |
tileY | number |
The y coordinate, in tiles, not pixels. |
point | Phaser.Math.Vector2 |
A Vector2 to store the coordinates in. If not given a new Vector2 is created. |
camera | Phaser.Cameras.Scene2D.Camera |
The Camera to use when calculating the tile index from the world values. |
layer | Phaser.Tilemaps.LayerData |
The Tilemap Layer to act upon. |
The XY location in world coordinates.