If I have the following code to arc a line…
go.arc5 = this.add.graphics();
go.arc5.lineStyle(4, 0xff00ff, 1);
go.arc5.beginPath();
go.arc5.arc(400, 300, 200, 90, 180, true);
go.arc5.strokePath();
…how can I use setTo(x,y), with this code? So that when I do a yo-yo angle tween, it tween’s the angle from the center of the arc?
This is the tween I am using…
//ADD TWEENS TO SHAPES
this.tweens.add({
targets: go.arc5,
angle: 90,
alpha: 0.2,
yoyo: true,
repeat: -1,
ease: 'Sine.easeInOut'
});