# Path follower using a timeline

**URL:** <https://phaser.discourse.group/t/path-follower-using-a-timeline/9018>\
**Category:** Phaser 3\
**Created:** [March 1, 2021, 6:01pm UTC](https://phaser.discourse.group/t/path-follower-using-a-timeline/9018 "2021-03-01T18:01:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlblume](https://avatars.discourse-cdn.com/v4/letter/j/dec6dc/32.png) [@jlblume](https://phaser.discourse.group/u/jlblume)\
**Post date:** [March 1, 2021, 6:01pm UTC](https://phaser.discourse.group/t/path-follower-using-a-timeline/9018/1 "2021-03-01T18:01:09Z")

</div>

I’m trying to animate a roller coaster that will follow a single path that contains multiple ups and downs and loops. Using a path follower it appears that I can only set a single ease on the animation. Is there a way to do this more like a timeline than a single tween? For example, if the roller coaster is going down a hill, then up a hill, I would use a inOut tween, but if it were going down a hill, up a hill, then down another hill I would want to ease in, then out, then back in and on and on. Is there a way to work a timeline into a path follower to get this effect, or a way to chain the easings across a single duration?

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [March 1, 2021, 9:06pm UTC](https://phaser.discourse.group/t/path-follower-using-a-timeline/9018/2 "2021-03-01T21:06:28Z")

</div>

Path Follower must use only one tween, but you can give a [custom easing function](http://phaser.io/examples/v3/view/tweens/custom-ease). Your function would choose an easing function based on the `t` range.

The other way is to use a timeline and an ordinary sprite and update the sprite’s position yourself.
