Phaser home
Phaser AE
Open source
Phaser 4
Download
Learn
Editor
Tools
Docs
Examples
News
Log in
Examples
/
Display
/
Align
Phaser 4.1.0
Phaser 4 examples
Align
9
examples
Examples
9
Align Bottom Center
Demonstrates how to align a Game Object to the bottom-center position inside another Game Object.
Align Bottom Right
Demonstrates how to use the BottomRight alignment helper to position one Game Object relative to the bottom-right corner of another.
Align In Bottom Left
Demonstrates how to align a Game Object to the inner bottom-left corner of another Game Object.
Align In Center
Demonstrates how to use Phaser.Display.Align.In.Center to align Game Objects to the exact center of other objects, such as zones or images.
Align In Right Center
Position a Game Object so it is aligned to the right-center interior of another Game Object.
Align In Top Center
Demonstrates how to align one Game Object to the inner top-center position of another Game Object using the Display Align utility.
Align In Top Left
Demonstrates how to position a Game Object inside the top-left corner of another Game Object using the alignment utility.
Align In Top Right
Demonstrates how to align one Game Object to the top-right corner of another using the Phaser.Display.Align utility.
In Left Center Alignment
Demonstrates using the LeftCenter alignment helper to position one Game Object relative to the middle of the left edge of another.