Solved How to make a brake animation after run animation?

Question that is answered or resolved.

hbdhl

Active member
I'd like to create a character with a lot of inertia:
The character runs fast, and when the player releases the arrow keys, the character slides forward slightly, like skating on ice.
 
Solution
I liked how it turns out. Question: do we need to use a freespecial for that? Can't we use the native run?
I don't want to use many cancels to use runattack, run jump, etc.
Now the code is using the native run but with a follow animation for the brake frames.
Basically the script will preserve the current speed moment for both X/Z axis during the brake animation and allow it to be gradually reduced.

Animations
Code:
anim idle
    loop    1
    delay    16
    offset    127 179
    bbox    117 109 19 72
    @cmd animVar "runFlag" 1 openborconstant("ANI_FOLLOW15") #CHANGE TO THE BRAKE ANIMATION IF THE RUNFLAG IS 1
    frame    data/chars/heroes/blaze/sor2/idle00.png
    frame    data/chars/heroes/blaze/sor2/idle01.png
    frame...
Back
Top Bottom