Converts from tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the layers position, scale and scroll.
If no layer is specified, the maps current layer is used.
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. |
layer | string | number | Phaser.Tilemaps.TilemapLayer | <optional> |
The tile layer to use. If not given the current layer is used. |
Returns a number, or null if the layer given was invalid.