Phaser home
Phaser AE
Open source
Phaser 4
Download
Learn
Editor
Tools
Docs
Examples
News
Log in
Examples
/
Paths
Phaser 4.1.0
Phaser 4 examples
Paths
56
examples
2
folders
Folders
2
Curves
29 examples
Followers
14 examples
Examples
13
Circle Loop Path
Demonstrates creating a complex path by combining multiple circular curves and moving an object along the resulting path using a tween.
Circle Path
Demonstrates creating a circular path using an Ellipse curve and moving a graphic along it by tweening a progress value.
Complex Path Bounds
Demonstrates how to calculate and visualize the bounding rectangle of a complex path composed of multiple segment types including lines, splines, ellipses, and bezier curves.
Line to Ellipse Path
Demonstrates building a complex path using a combination of straight lines and elliptical curves, with an object animated along the path.
Move Matter Body Along a Path
Demonstrates how to move a Matter.js physics body along a curve by calculating velocity vectors between points on an elliptical path.
Move To
Demonstrates how to use the moveTo method to reposition the path starting point for a new segment without creating a connecting line.
Path Bounds
Learn how to calculate and visualize the bounding box of a complex path containing multiple curve segments.
Path Line and Bezier Curve
Demonstrates how to construct a complex path by combining straight lines and cubic Bezier curves, and how to animate an object along the resulting path using a Tween.
Path with Line Segments
Construct a multi-segment path using lineTo and animate an object moving along the path using a tween and getPoint.
Path with Multiple Segment Types
Demonstrates how to construct a complex path by combining splines, lines, ellipses, and cubic Bezier curves, while moving a follower along its length.
Procedural Scrolling Landscape Path
Create an infinitely scrolling landscape using dynamic Paths and Graphics. This example demonstrates extending paths with random segments and using fillPoints to render filled terrain shapes.
Simple Path and Follower
Demonstrates creating a path from multiple line segments and using a tween to move an object along the entire path length, even if the curves are not connected.
Zig Zag Path
Create a custom zig-zag path using line segments and move multiple sprites along it by interpolating points based on tweened values.