Takes given Game Object and aligns it so that it is positioned next to the top center position of the other.
name | type | arguments | description |
---|---|---|---|
gameObject | Phaser.GameObjects.GameObject |
The Game Object that will be positioned. |
|
alignTo | Phaser.GameObjects.GameObject |
The Game Object to base the alignment position on. |
|
offsetX | number | <optional> |
Optional horizontal offset from the position. |
offsetY | number | <optional> |
Optional vertical offset from the position. |
The Game Object that was aligned.