Hi folks,
I'm implementing a feature in my platform game that allows the player to "climb" up edges. It should work as if the character grabs the edge of a higher wall/floor and then pulls himself up, but I'm having trouble making it work.
Have a look at this picture:
http://admin.deletionquality.net/dump/climb.jpg
Depending on when the player grabs the edge the distance he should move upwards is different, but I can always find out the value.
Because I can't use sparrow to tween a box2D body (as I originally tried), I have to apply a force to push him up instead. The thing I need to know is some sort of formula that always applies the right amount of force to push the player upwards the total distance. It should also work no matter what the framerate is.
On top of this, the whole movement should always happen in an exact period of time (like a second). This is so that I can match it with a sprite sheet animation of the player pulling up.
If anyone has ideas on how I can work this out please share, thanks.