Phaser API Documentation

  Version: 
tileToWorldY(tileY, [camera])

Description:

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

Parameters:

name type arguments description
tileY number

The y coordinate, in tiles, not pixels.

camera Phaser.Cameras.Scene2D.Camera <optional>

The Camera to use when calculating the tile index from the world values.

Returns:
Description:

The Tile Y coordinate converted to pixels.

Type:
  • number
Since: 3.50.0