Phaser 4 examples

Followers

  • 14 examples

Examples 14

Basic Path FollowerDemonstrates how to create Path Follower Game Objects and have them move along a Spline curve using a defined duration.Change Follower PathLearn how to dynamically switch a follower sprite between different paths at runtime using the setPath method.Leave PathDemonstrates how to stop a path follow tween and manually reposition a sprite once it reaches the end of a spline curve.Mass FollowersDemonstrates how to have multiple Game Objects follow a single spline curve path simultaneously with staggered start delays.Multi-Curve Path FollowerDemonstrates 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 OffsetDemonstrates 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 OffsetDemonstrates how to start a path follower at a specific progress point along a curve using the startAt property.Path from JSONCreate a path using loaded JSON data and animate multiple sprites along it using the Follower component.Path from JSON All TypesDemonstrates 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 FollowingDemonstrates how to toggle a follower's movement along a path using the pauseFollow and resumeFollow methods.Rotate to PathDemonstrates how to make a follower Game Object automatically rotate to align with the direction of a spline path as it moves.Sparkle TrailCreate a flowing trail effect by staggering multiple Game Objects as they follow a spline curve with additive blending.Wave Path FollowerDemonstrates creating a sinusoidal wave path using alternating elliptical curves and animating multiple sprites along it with staggered start delays.Yoyo Path FollowerDemonstrates 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.