8-way 2D top down movement (diagonal) idle animation issues
I am working on animations for 8-way movement for my character. I have easily done the 8 directional running animations, using a blend tree, now I need to do the same for the idle animations. So when the player stops moving, the right idle animation plays, for example, if they move right and let go of the 'A' button, then the idle animation of the player facing right is played.
I have easily done four out of the 8 directions easily (Top, left, right and down), my problem is just with the diagonal parts, e.g if the player lets go of the 'W' and 'D' keys then the idle animation of the player facing the top right corner should be played. I can't get this to work though.
I realized it's because the two keys, whether it be (W and D, S and D, A and S, or W and A), are let go at different times, and with the system I have currently, the player has to let go of any of those two key combinations to successfully play the right diagonal animation.
Is there a system for this, add a tiny bit of input lag or map keys to something?
I would also be interested to know if you come top with a solution for this.
Thanks pelagos