Open thelucre opened 9 years ago
Grabbing onto vines / ropes would be awesome too, and seems like the implementation could probably use the same logic.
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.
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:
wip implementation at #30
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