Ninjadoodle Posted February 6, 2018 Report Share Posted February 6, 2018 Hi @enpu Just wondering how to call an animations onComplete function. This is what I have but it doesn't seem to do anything ... this.sprite.addAnim('hideO', [7, 8, 9, 10, 11, 12]); this.sprite.anims.hideO.speed = 60; this.sprite.anims.hideO.loop = false; this.sprite.anims.hideO.onComplete = function() { console.log('done'); } Thanks! Link to comment Share on other sites More sharing options...
enpu Posted February 6, 2018 Report Share Posted February 6, 2018 It seems that it doesn't work when using multiple animations. Can you update to latest dev version and try again? Ninjadoodle 1 Link to comment Share on other sites More sharing options...
Ninjadoodle Posted February 6, 2018 Author Report Share Posted February 6, 2018 @enpu - Thanks, works perfectly! Link to comment Share on other sites More sharing options...
Recommended Posts