Problem with ladder and player animation

Hello everyone.

I created my first game using not a vania example and i wanted to add ladder to my game, but i have few problems:

  1. If player jump from ground directly to ladder my animation stuck (climb animation) and starts float in whole map. Player can’t use jump, skills or anything, do dmg from monster. Just floating.

(don’t look at badly made sprites, wip :D)

  1. Just a quick question. How should i stop my sprite animation if player is on ladder and not moving. And if player starts to move then animation starts to move again.

It’s probably not a good idea to trigger the animation action every frame that the player is in collision with the ladder.