phaser - v4.0.0-rc.4
    Preparing search index...
    • Takes a Game Object and aligns it next to another, at the given position. The alignment used is based on the position argument, which is a Phaser.Display.Align property such as LEFT_CENTER or TOP_RIGHT.

      Type Parameters

      Parameters

      • child: G

        The Game Object that will be positioned.

      • alignTo: GameObject

        The Game Object to base the alignment position on.

      • position: number

        The position to align the Game Object with. This is an align constant, such as Phaser.Display.Align.LEFT_CENTER.

      • OptionaloffsetX: number

        Optional horizontal offset from the position. Default 0.

      • OptionaloffsetY: number

        Optional vertical offset from the position. Default 0.

      Returns G