Ledge Grab With Pull Up
TCL
Member Posts: 2
So I want my actor to grab on to the ledge of a wall if he does not make the jump, and I have that part down, I am just not sure what the best way to go about it is. I have tried placing an actor at the edge of a wall and using it as a check, I don't know if that is the most effective way to go about it but if it is, how might I go about making him move up and to the right so he ends up on top of the wall/ledge and somewhat smoothly so I can add in an animation of the pull up. Thanks.
Comments
You might be able to if you use a variable and a formula. The formula for the top of an actor is "X=self.positionY+(self.height/2)" If you do it with a formula for the side "X=self.positionX+(self.width/2)" (the + is for the right side, use - for the left side) with these you can make an invisible actor and if it gets within that actor play an animation and move it up. To move it up you could destroy the player, replace it with an animation for climbing the ledge and then spawn it on top. Thats just some ideas though.