How to improve Idle animation

I have a basic animation logic node with started keys to play action for character jog animations and release keys to play action the idle animation. Is there a more complex logic node to only trigger the idle animation when there are no keys being pressed?

The problem is, I press ‘w’ my character moves forward, then I press ‘a’ at the same time and my character moves forward and left, BUT if I released the ‘w’ key it triggers the idle animation because releasing the key was the last input. This stops my jogging animation and causes the character to idle strafe sideways.

Hi !

You could use something like this to check if no key is pressed and then play idle animation

What happens here is when each of the keys (W, S, A or D) is released, it checks if any of the other keys are still down. If not then plays the idle animation.

2 Likes