Nikow Posted July 16, 2015 Share Posted July 16, 2015 Hi, i need more informations about speed property of animations.. I did this :bike.animations.add('pedale',[0,1,2,3,4,5,6,7,8,9,10,11,12,13]);bike.animations.play('pedale',0,true,false)bike.animations.speed = 10;But the animation didn't play at 10 frames per seconds ....? So What's wrong with my code and what is the good way to use it ? Thanks all Link to comment Share on other sites More sharing options...
frenetikm Posted July 16, 2015 Share Posted July 16, 2015 perhaps put the speed before playing the animation ? Link to comment Share on other sites More sharing options...
Nikow Posted July 16, 2015 Author Share Posted July 16, 2015 It's not working... Link to comment Share on other sites More sharing options...
substandardgaussian Posted July 16, 2015 Share Posted July 16, 2015 You're trying to set the "speed" property for the AnimationManager, not the animation itself. AnimationManager doesn't have a "speed" property, it won't do anything with it. You can access your pedale animation throughbike.animations._anims['pedale']orbike.animations._anims.pedaleYou should be able to set the speed there. You can set your frameRate when you call add, if you know the speed you want to play it at in advance. Nikow 1 Link to comment Share on other sites More sharing options...
Nikow Posted July 16, 2015 Author Share Posted July 16, 2015 Thank youuuuuuuuu ! Link to comment Share on other sites More sharing options...
Recommended Posts