cjddmut / Unity-2D-Platformer-Controller

A customizable 2D platformer motor that handles mechanics such as double jumps, wall jumps, and corner grabs. Includes a player controlled prefab that can be dropped into any scene for immediate support.
MIT License
865 stars 163 forks source link

Ladder / Climbing area implementation #21

Open thelucre opened 9 years ago

thelucre commented 9 years ago

Add a new motor state : OnLadder Add a flag to detect if the motor overlaps a climbable collider Ability to set directional movement, IE: Vertical, Horizontal, both

volkipp commented 9 years ago

Grabbing onto vines / ropes would be awesome too, and seems like the implementation could probably use the same logic.

cjddmut commented 9 years ago

It's something I've thought about but I'm not sure if it makes sense for the motor to be responsible for that. Basically I'm not sure yet (though please feel free to implement it if you think it makes sense!)

My current thoughts is that is a scenario where you would disable the motor (if you are on a ladder or whatever) and have your ladder/vine/rope controller take over and then reenable the motor once you want it to take back over.

3noneTwo commented 9 years ago

Ladder/fence climbing would be wonderful. It's easy enough to disable the Platformer motor and enable a separate ladder controller, but there's so much headache involved when it comes to building a robust ladder/fence controller from scratch — for a non-coder, at least. Things like containing a player inside a collider while climbing, or making sure the player can't climb their way into a level collider while the motor is disabled.

...I'll admit, I've been fighting Unity for the past week. I'm ready to throw money at ladders and ladder-based solutions until they work. :disappointed:

llafuente commented 9 years ago

wip implementation at #30