I've got a 2D character that's going to climb up a 2D tile to his left or right and I've got a climbing animation consisting of three parts essentially:
- Animation for the character going from walking onto the ground -> climbing on the wall
- The actual climbing animation when on the wall
- A "climbing over the top" animation for where the character pulls himself over the top of the wall and onto the ledge above.
What is the smoothest way to handle this in Unity? Do I need three separate animation clips for each of the steps, or can I do it with one and simply loop the middle section of the clip?
For example, my initial thought would be to have one clip for the entire animation and do the following:
- play the first few "climbing onto the wall" frames when climbing onto the wall
- loop the actual climbing animation while the character is on the wall and isn't ready to climb over the top
- transition to the final few frames when the character is ready to pull himself over the top
Is this easily doable in Unity? Or is there an easier way to do this that I'm not thinking about? This seems a bit contrived and decently complicated so that's why I'm wondering.