Phaser API Documentation

<static> TileCheckY(body, tile, tileTop, tileBottom, tileBias, isLayer)


Check the body against the given tile on the Y axis. Used internally by the SeparateTile function.


name type description
body Phaser.Physics.Arcade.Body

The Body object to separate.

tile Phaser.Tilemaps.Tile

The tile to check.

tileTop number

The top position of the tile within the tile world.

tileBottom number

The bottom position of the tile within the tile world.

tileBias number

The tile bias value. Populated by the World.TILE_BIAS constant.

isLayer boolean

Is this check coming from a TilemapLayer or an array of tiles?


The amount of separation that occurred.

  • number
Since: 3.0.0