AndyBeaulieu Posted February 10, 2014 Share Posted February 10, 2014 Hello! I would like to execute some code when a particular animation completes. For example, I begin an animation on frames 61 to 91: scene.beginAnimation(skeleton, 61, 91, false, 1); ... and when the animation gets to frame 80, I would like to have an event fire to do another action. What's the best way to go about this? Thanks!-Andy Quote Link to comment Share on other sites More sharing options...
AndyBeaulieu Posted February 10, 2014 Author Share Posted February 10, 2014 Sorry, answering my own question - I missed the onAnimationEnd parm! BABYLON.Scene.prototype.beginAnimation = function (target, from, to, loop, speedRatio, onAnimationEnd) { 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.