Animation Speed -Question[SOLVED]


(billy2000) #1

I just whant to know if there is any posibility to change a spritemap animation once set .Like:

myAnim.add("anim",[0,1,2],speed,false);

Could i change speed so it affects the animation?

TY.


(Ultima2876) #2

Check out myAnim.rate. That’s a speed multiplier for your animation :slight_smile:


(billy2000) #3

Oh ty very much xD Also ty for fast response XD


(Ultima2876) #4

No problem. If you want very solid control over your animation speed then consider setting the basic speed in that myAnim constructor to 1 then just use the rate to set the speed as you like.


(Jacob Albano) #5

That’s a fantastic idea. I never thought of doing it that way.


(billy2000) #6

oh nice O: . That’s a pretty good idea xD.