Help with 2D platform climbing?

Hey guys, I’m working on a 2D platformer, and I’ve run into a problem that I’m having trouble working with. I’m fairly new to programming and Unity FYI. I want to have the player “grab” a tree when they see it, climb up down sideways and everything… However, I have thought of some ideas for this but I would like to know if any experts have some tips to go about this? I’m having a lot of trouble. I don’t need specific code but any useful methods or ideas would be great! Thanks!

Grabbing a tree when you see it, and grabbing a tree when you want are two completely different scripts. I’m going to guess that you want to walk next to a tree and press a key to climb it. I would use a trigger to set a keypress ability to true. When you are within range of the tree (inside the trigger), the climb key would be able to be pressed and an animation would be played as the player is translated up.