Hi,
The first timeline is not working as expected.
How I can make it works?
What I need is Loop a first tween with multple x,y postion.
and after another timeline.
var timeline = this.tweens.createTimeline();
timeline.add({
loop: 3,
targets: this.ball,
ease: 'Linear',
duration: 200,
tweens: [{ x: 217, y: 9 },
{ x: 186 , y: 12 },
{ x: 157 , y: 18 },
{ x: 129 , y: 35 },
{ x: 103 , y: 50 },
{ x: 79 , y: 69 }]
});
timeline.add({
targets: this.ball,
scale: 3,
rotation: {
from: 20,
to: 25,
},
ease: Phaser.Math.Easing.Cubic.Out,
});
timeline.play();