Random 2D animation glitches (Solved)

So I’m posting this in the 2D board because I have only had these problems with 2D games. So I have been having this glitches that happen but not every time I repeat the action that they follow. Most of them in my current game has to do with the animation tree transitions. They don’t work properly every time. I once solved a problem like this by recreating the project from scratch again. This time I’m to far to want to do that. So is there a way to remove these glitches?

So I found an simple solution on my own, and I decided to post it so anyone else with this problem who finds this thread can be helped by it.

All you have to do is got to the edit menu, go to preferences and delete the projects cache. I did that and all the glitches went away. Just like that.