How to make my character climb a curb

I´d like to do a climbing animation when you are near a ledge, I´m doing a Sidescrolling game (my first one, I didn´t even figure how to “paint” my character) I don´t know anything, I tried creating a event with colissions but I don´t know how to even do the animation! Help please!

This is way too complicated to just explain in one answer. I suggest you follow some tutorials on ledge grabbing, as the mechanic is pretty much the same;

Ledge grabbing tutorial