Aligns this Game Object to the side of another Game Object, or Rectangle, known as the 'parent', in one of 11 possible positions.
Aligns this Game Object to the side of another Game Object, or Rectangle, known as the 'parent', in one of 11 possible positions. The parent must be a Game Object, or Phaser.Rectangle object. This can include properties such as World.bounds or Camera.view, for aligning Game Objects within the world and camera bounds. Or it can include other Sprites, Images, Text objects, BitmapText, TileSprites or Buttons. Please note that aligning a Sprite to another Game Object does not make it a child of the parent. It simply modifies its position coordinates so it aligns with it.
The Game Object or Rectangle with which to align this Game Object to. Can also include properties such as World.bounds or Camera.view
The position constant. One of Phaser.TOP_LEFT (default), Phaser.TOP_CENTER, Phaser.TOP_RIGHT, Phaser.LEFT_CENTER, Phaser.CENTER, Phaser.RIGHT_CENTER, Phaser.BOTTOM_LEFT, Phaser.BOTTOM_CENTER or Phaser.BOTTOM_RIGHT
A horizontal adjustment of the Containers bounds, applied to the aligned position of the Game Object. Use a negative value to shrink the bounds, positive to increase it.
A vertical adjustment of the Containers bounds, applied to the aligned position of the Game Object. Use a negative value to shrink the bounds, positive to increase it.
This Game Object.
The sum of the y and height properties.
The sum of the y and height properties.
This is the same as y + height - offsetY
.
The center x coordinate of the Game Object.
The center x coordinate of the Game Object.
This is the same as (x - offsetX) + (width / 2)
.
The center y coordinate of the Game Object.
The center y coordinate of the Game Object.
This is the same as (y - offsetY) + (height / 2)
.
The left coordinate of the Game Object.
The left coordinate of the Game Object.
This is the same as x - offsetX
.
The amount the Game Object is visually offset from its x coordinate.
The amount the Game Object is visually offset from its x coordinate. This is the same as width * anchor.x. It will only be > 0 if anchor.x is not equal to zero.
The amount the Game Object is visually offset from its y coordinate.
The amount the Game Object is visually offset from its y coordinate. This is the same as height * anchor.y. It will only be > 0 if anchor.y is not equal to zero.
The right coordinate of the Game Object.
The right coordinate of the Game Object.
This is the same as x + width - offsetX
.
The y coordinate of the Game Object.
The y coordinate of the Game Object.
This is the same as y - offsetY
.
The Bounds component contains properties related to the bounds of the Game Object.
http://phaser.io/docs/2.6.2/Phaser.Component.Bounds.html