Ninjadoodle Posted February 6, 2018 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! Quote Link to comment Share on other sites More sharing options...
enpu Posted February 6, 2018 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 Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted February 6, 2018 Author Share Posted February 6, 2018 @enpu - Thanks, works perfectly! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.