I've been working on a new game with the Blender Game Engine - a 2D platform game. I've added some basic functionality, and now I want to allow the player to climb a ladder.
To put it very plainly, how do I do that (either by logic or Python code)?
I've seen some tutorials online, but they seem to have a roundabout approach (but I'm probably wrong). They add a plane to the ladder, and allow the player to climb then. I gave it a different try and set it so that if the player was touching the ladder and pressed space, his z velocity (I think it was) went up. He was able to climb the ladder that way, but the animation was very unrealistic.
So, I am just wondering the best, professional way to allow a player to climb a ladder. Furthermore, what if the ladder was slanted a little? How would you climb that? (I guess you could create logic moving him up and forward, but that would require a whole new ladder function; one for vertical ladders, and another for slanted ladders).
P.S. Any help is appreciated. Any tips or whatever offered will probably be used in my game and other projects. I may not be able to offer any credit, but help will still be very appreciated.