Hello !
I want to call this function in update() but when i do it nothing happen
circles(xcor,ycor,angle,group,ring)
{
Phaser.Actions.RotateAroundDistance(group, {xcor, ycor}, angle, ring);
}
But when I call a console.log(“test”) only the console.log() work so we enter in the function
circles(xcor, ycor, angle, group, ring)
{
Phaser.Actions.RotateAroundDistance(group, {xcor, ycor}, angle, ring);
console.log("test");
}
The call in update look like this
update()
{
circles(500, 300, 0.02, this.group1, this.ring1)
}
this is ring1
this.ring1 = this.tweens.addCounter({
from: 210,
to: 160,
duration: 3000,
delay: 2000,
ease: 'Sine.easeInOut',
repeat: -1,
yoyo: true,
})
and this is group1
this.group1=this.add.group({ key: 'pixel', frame: [0, 1, 5], repeat: 10 });