jerome Posted February 8, 2014 Share Posted February 8, 2014 http://examples.phaser.io/_site/view_full.html?d=games&f=invaders.js&t=invaders I notice the descend() function isn't correctly executed on tween.onComplete.Invaders don't descend. Link to comment Share on other sites More sharing options...
rich Posted February 8, 2014 Share Posted February 8, 2014 Very true. Will fix it. Link to comment Share on other sites More sharing options...
deargle Posted July 15, 2016 Share Posted July 15, 2016 A change in 2.4.5 broke descent again. Two options to fix for invaders: 1. Change the `repeat` value in the tween `to` call from 1000 to -1 (infinite) -- then `onLoop` will be triggered2. Change `onLoop` to `onRepeat` because right now that's what is being called because of that 1000 value. Link to comment Share on other sites More sharing options...
vastron Posted February 14, 2018 Share Posted February 14, 2018 thank you very much for this! Link to comment Share on other sites More sharing options...
Recommended Posts