I want the player to only be able to jump off ledges, similar to Ocarina of Time, but I can't wrap my head around how I would go about doing that.
I've studied a little bit into A.I Pathfinding thinking that it might help, but I still can't figure it out. Any suggestions are appreciated!
Also, I don't necessarily need code. Just some ideas for how to detect a drop.

3 comments
Could you explain a bit more? I don't understand what you're trying to do.
In Ocarina of Time, when Link walked off a ledge, he would automatically jump forward. I want to see if I can replicate that.
You could maybe put a part in front of a ledge and make the character jump when they touch it, assuming they are already walking forward.