Phaser API Documentation

  Version: 
<static> TileCheckX(body, tile, tileLeft, tileRight, tileBias, isLayer)

Description:

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

Parameters:

name type description
body Phaser.Physics.Arcade.Body

The Body object to separate.

tile Phaser.Tilemaps.Tile

The tile to check.

tileLeft number

The left position of the tile within the tile world.

tileRight number

The right 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?

Returns:
Description:

The amount of separation that occurred.

Type:
  • number
Since: 3.0.0