Positions the Game Object so that it is centered on the given coordinates.
name | type | description |
---|---|---|
gameObject | Phaser.GameObjects.GameObject |
The Game Object that will be re-positioned. |
x | number |
The horizontal coordinate to position the Game Object on. |
y | number |
The vertical coordinate to position the Game Object on. |
The Game Object that was positioned.