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.

    An open source retro style platform game made using Haxeflixel https://www.thespacecastle.org/

    0

Log in to reply