Takes given Game Object and aligns it so that it is positioned next to the bottom 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.
Takes given Game Object and aligns it so that it is positioned next to the bottom left 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.
Takes given Game Object and aligns it so that it is positioned next to the bottom right 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.
Takes given Game Object and aligns it so that it is positioned next to the left bottom 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.
Takes given Game Object and aligns it so that it is positioned next to the left 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.
Takes given Game Object and aligns it so that it is positioned next to the left top 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.
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
.
name | type | arguments | description |
---|---|---|---|
child | Phaser.GameObjects.GameObject |
The Game Object that will be positioned. |
|
alignTo | Phaser.GameObjects.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 |
|
offsetX | number | <optional> |
Optional horizontal offset from the position. |
offsetY | number | <optional> |
Optional vertical offset from the position. |
The Game Object that was aligned.
Takes given Game Object and aligns it so that it is positioned next to the right bottom 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.
Takes given Game Object and aligns it so that it is positioned next to the right 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.
Takes given Game Object and aligns it so that it is positioned next to the right top 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.
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.
Takes given Game Object and aligns it so that it is positioned next to the top left 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.
Takes given Game Object and aligns it so that it is positioned next to the top right 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.