Animation change randomly switches back glitch
I have a basic top down 2d walking animation setup. Sometimes, when I switch animations it'll switch back, and I have to try again to get it to switch. Also happens when walking diagonally, it looks fine but then it'll switch to a different direction animation.
I had a problem with just having an else function that sets it to idle when key isn't down since it would register my button as unpressed when I was still pressing it and I couldn't move animated for more than a second, so I just have a transition between each of the W, A, S, and D (w to a, s, d, a to w, s, d, etc)
It's not consistent, so it seems like its just glitchy, but is there something I can do to fix the glitchiness? I have SetTrigger's for all of it, and one for idle that stops being used after the first key press for now.