Climbing ladders in a sidescroller
micah
Member Posts: 85
I want to make it so when the player is over a ladder, they can press up to climb it, and when they're not pressing anything they don't fall. I'm having trouble making it work. Gravity is 300, so to cancel it out I need to accelerate up at a rate of 300. I can't get it to work.
I'm using a rule in the player actor that says if it collides or overlaps a ladder, to accelerate up. And if the player presses up, there's another rule that checks to see if it's overlapping a ladder or not, and if so it accelerates up even more instead of running the jump code. But this isn't working. Anyone else had this problem?
I'm using a rule in the player actor that says if it collides or overlaps a ladder, to accelerate up. And if the player presses up, there's another rule that checks to see if it's overlapping a ladder or not, and if so it accelerates up even more instead of running the jump code. But this isn't working. Anyone else had this problem?
Comments