Roosey Posted December 3, 2018 Share Posted December 3, 2018 I have a group, jewels, that I am animating all of the children of using jewels.playAnimation(). I was wondering if there is a way to add a setrepeatDelay() on to all animations within the group. I've had a look through the documentation but it seems to be fairly limited on group animations. I know I can do this by iterating through the group but I was just wondering if there's a way of doing it without needing to :-) Thanks for any info! var jewels; function create() { jewels = this.physics.add.staticGroup(); /***** Create sprites code in here *****/ this.anims.create({ key: 'jewelAnims', frames: this.anims.generateFrameNumbers('jewel', {start: 0, end: 6}), frameRate: 10, repeat: -1 }); } function update() { jewels.playAnimation("jewelAnims", true); //.setRepeatDelay(2000)? } Link to comment Share on other sites More sharing options...
Recommended Posts