Phaser home
Phaser AE
Open source
Phaser 4
Download
Learn
Editor
Tools
Docs
Examples
News
Log in
Examples
/
Paths
/
Followers
Phaser 4.1.0
Phaser 4 examples
Followers
14
examples
Examples
14
Basic Path Follower
Demonstrates how to create Path Follower Game Objects and have them move along a Spline curve using a defined duration.
Change Follower Path
Learn how to dynamically switch a follower sprite between different paths at runtime using the setPath method.
Leave Path
Demonstrates how to stop a path follow tween and manually reposition a sprite once it reaches the end of a spline curve.
Mass Followers
Demonstrates how to have multiple Game Objects follow a single spline curve path simultaneously with staggered start delays.
Multi-Curve Path Follower
Demonstrates creating a complex path composed of splines, lines, ellipses, and cubic Bezier segments, with a follower sprite that automatically rotates to match the path orientation.
Path Follower Rotation Offset
Demonstrates how to apply a rotation offset to a sprite following a path, allowing you to adjust its orientation relative to the direction of travel.
Path Follower Start Offset
Demonstrates how to start a path follower at a specific progress point along a curve using the startAt property.
Path from JSON
Create a path using loaded JSON data and animate multiple sprites along it using the Follower component.
Path from JSON All Types
Demonstrates how to create a complex path by loading a JSON definition containing various curve types and assigning multiple sprites as path followers.
Pause and Resume Path Following
Demonstrates how to toggle a follower's movement along a path using the pauseFollow and resumeFollow methods.
Rotate to Path
Demonstrates how to make a follower Game Object automatically rotate to align with the direction of a spline path as it moves.
Sparkle Trail
Create a flowing trail effect by staggering multiple Game Objects as they follow a spline curve with additive blending.
Wave Path Follower
Demonstrates creating a sinusoidal wave path using alternating elliptical curves and animating multiple sprites along it with staggered start delays.
Yoyo Path Follower
Demonstrates how to make a Game Object follow a Cubic Bezier path with a yoyo effect, causing it to travel back and forth along the curve.