Dynamically change animation speed?



  • Hello,

    I'm looking for a way to change the speed of a FlxSprite's animation while it is playing.

    Specifically I want my character's run cycle to slow down depending on the velocity (so it smoothly comes to a stand-still). What would be the best way to achieve this?

    EDIT:
    Ah, sorry. I already found it. It works via curAnim.frameRate, right?



  • i believe that drag is what you need.
    yes, framerate can change the speed of the animation.


Log in to reply
 

Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.