Character animation

I got stuck with character animation, but in the end everything is working how I want.

walking and jumping


My code looks like garbage. I hope I will have time for refactoring.