Phaser API Documentation

  Version: 
<static> GetTop(gameObject)

Description:

Returns the top coordinate from the bounds of the Game Object.

Parameters:

name type description
gameObject Phaser.GameObjects.GameObject

The Game Object to get the bounds value from.

Returns:
Description:

The top coordinate of the bounds of the Game Object.

Type:
  • number
Examples:
Since: 3.0.0