In this project I am working in my client requested a “fast forward” button to speed up the game animation, meaning that mostly I have to double the speed that a sprite takes to cover the whole path.
Knowing that my main enemy is created this way:
var enemy = "enemy";
this[enemy] = this.add.follower(mypath, -20, 200, enemy).startFollow({
duration: 5000,
loop: -1
});
I then tried the approach below (and that didn’t work):
this[enemy].pathTween.duration = 1000;
this[enemy].pathTween.totalDuration = 1000;
It didn’t raised any error but just didn’t change anything.
There is a way of doing what I am after?