Nokdu Posted February 19, 2014 Share Posted February 19, 2014 I was doing some basic prototyping.. and i wondered how i would change the speed of a certain spritesheet animation on the fly. is there a way i can do this? Link to comment Share on other sites More sharing options...
rich Posted February 19, 2014 Share Posted February 19, 2014 You can't change the animation speed as it's actually running, although that's a nice idea so worth adding to github issues as a feature request You'd have to re-start the animation with the new speed. Link to comment Share on other sites More sharing options...
Nokdu Posted February 20, 2014 Author Share Posted February 20, 2014 You can't change the animation speed as it's actually running, although that's a nice idea so worth adding to github issues as a feature request You'd have to re-start the animation with the new speed. restart as in call play() again? Link to comment Share on other sites More sharing options...
rich Posted February 28, 2014 Share Posted February 28, 2014 Just to add that I've now added this feature to 1.2 You can adjust the rate via Animation.speed now. Link to comment Share on other sites More sharing options...
kleepklep Posted April 1, 2015 Share Posted April 1, 2015 Here's an example for others looking to do this.For code like thiswheel.animations.play('spin', 15, true)you would adjust the speed like so:wheel.animations.currentAnim.speed = 20 ekiscrim 1 Link to comment Share on other sites More sharing options...
Recommended Posts