How to stop quick start animation right after key up

Hi,
I'm wondering whether there is any way to stop the quick start animation.
The thing is when I click the ASWD buttons and the character plays full quick start animation. But I think it should be shorter if I just fast-tap the button.
Could you show me how to do it?

Thank you,
 

Attachments

  • nolan(1) (1).gif
    nolan(1) (1).gif
    292.9 KB · Views: 5
Me too, I managed partially by creating a transition in the animation controller that exits if the button is not pressed, but this caused other problems, as it made the end animation event not complete. And if I pull the event at the start, the animation will be cut. It's a very bad problem, especially in games where you only need to move a little bit to adjust the position.
 
In fact, looks like it was fixed by just adding "m_EventStop = true;" to "OnMoving" when not moving.

C#:
private void OnMoving(bool moving)
{
    if (!moving) {
        // The ability can't start until the character is no longer moving. This will prevent the ability from starting repeatedly
        // while the character is moving.
        m_CanStart = true;

        m_EventStop = true;
    }
}

I wonder why this isn't there natively.
 
Top