Phaser API Documentation

  Version: 
<static> TileToWorldY(tileY, camera, layer)

Description:

Converts from tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the layer's position, scale and scroll.

Parameters:

name type description
tileY number

The y coordinate, in tiles, not pixels.

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.

Returns:
Description:

The Y location in world coordinates.

Type:
  • number
Since: 3.0.0