I'm making a game where the player is able to climb up walls. Doing this is simple enough, I just adapted the "ladder" functions in Platform School (thanks Deadeye!) to climbing up walls instead. However, getting to the top of the wall brings about another problem.
My character has an animation that plays when they pull themselves up onto the surface. Of course, this animation ends with the character standing up on the surface. The question I have is how could I get this to work fluidly?
I thought of having the animation set up hotspots of the animation in such a way that, should the player be just looking at it, the character then appears to be pulling themselves up, the way they should. In reality, I'm removing the collision mask from where it is to where it would be after the animation was done, and using an offset to detect whether or not the player should continue climbing, or pull themselves up. If this hardly making any sense, I've attached a video of a similar game.
In my game, you can climb up walls, so its not just an issue of what you can hang on to. But the animation of climbing up onto the surface is what I'm trying to get done. From a visual standpoint, its easy. But from a technical, behind the scenes standpoint? I've never figured this out. Help, anyone?