The Game Object that will be positioned.
The Game Object to base the alignment position on.
The position to align the Game Object with. This is an align constant, such as Phaser.Display.Align.LEFT_CENTER.
OptionaloffsetX: numberOptional horizontal offset from the position. Default 0.
OptionaloffsetY: numberOptional vertical offset from the position. Default 0.
Takes a Game Object and aligns it next to another, at the given position. The alignment used is based on the
positionargument, which is aPhaser.Display.Alignproperty such asLEFT_CENTERorTOP_RIGHT.