phaser - v4.0.0-rc.4
    Preparing search index...
    • Takes given Game Object and aligns it so that it is positioned in the right center of the other.

      Type Parameters

      Parameters

      • gameObject: G

        The Game Object that will be positioned.

      • alignIn: GameObject

        The Game Object to base the alignment position on.

      • OptionaloffsetX: number

        Optional horizontal offset from the position. Default 0.

      • OptionaloffsetY: number

        Optional vertical offset from the position. Default 0.

      Returns G