How to - Sprite Animation Cancel at Walls

Hey,

I just have a question about how to cancel animations at walls. I have a 2D side scroller with a climbing animation while moving up or down. However, if you hit up or down into a wall the character will stand in the same spot and look like they're climbing. I've attached a video for reference. Is there a way to prevent or fix this?

Video for reference:



Thank you for any help,
Hrk Tu

Original thread: https://forums.rpgmakerweb.com/threads/how-to-sprite-animation-cancel-at-walls.143002/