Phaser API Documentation

  Version: 
<static> GetOffsetY(gameObject)

Description:

Returns the amount the Game Object is visually offset from its y coordinate. This is the same as width * origin.y. This value will only be > 0 if origin.y is not equal to zero.

Parameters:

name type description
gameObject Phaser.GameObjects.GameObject

The Game Object to get the bounds value from.

Returns:
Description:

The vertical offset of the Game Object.

Type:
  • number
Examples:
Since: 3.0.0