Setting the speed of an object that follows a path

Hi,
i’m trying to reproduce this example:
https://labs.phaser.io/edit.html?src=src/paths/curves/drag%20ellipse%20curve.js&v=3.24.1

and i would like to know if there is a way to get the speed for every point and change it on the fly when needed.

my final goal is to change speed value when the object reach the x position edges

Thanks

I think it’s difficult to change a tween duration on the fly.

You could maybe add a new tween for the new duration, possibly seeking it.

1 Like