phaser - v4.0.0-rc.4
    Preparing search index...
    • Takes an array of Game Objects and aligns them next to each other.

      The alignment position is controlled by the position parameter, which should be one of the Phaser.Display.Align constants, such as Phaser.Display.Align.TOP_LEFT, Phaser.Display.Align.TOP_CENTER, etc.

      The first item isn't moved. The second item is aligned next to the first, then the third next to the second, and so on.

      Type Parameters

      Parameters

      • items: G

        The array of items to be updated by this action.

      • position: number

        The position to align the items 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