Jump to content

'Speed' of spriteSheet Animations ?


Recommended Posts

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

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 through




You 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.

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...