Phaser API Documentation

  Version: 
<static> SetRight(gameObject, value)

Description:

Positions the Game Object so that the left of its bounds aligns with the given coordinate.

Parameters:

name type description
gameObject Phaser.GameObjects.GameObject

The Game Object that will be re-positioned.

value number

The coordinate to position the Game Object bounds on.

Returns:
Description:

The Game Object that was positioned.

Examples:
Since: 3.0.0