Posts: 997
Threads: 1,019
Joined: Dec 2006
Reputation:
0
Yeah, ladders were tricky to code. Consider these situations:
Let's say Jack is standing near, but not directly aligned with, a ladder. He pushes up or down to climb it. First, he should walk over to the ladder, then climb it once it's aligned with it. So when you push up or down, the code first has to find the nearest ladder (to Jack's left or right), determine if it's within range, and if so, make Jack walk left/right towards it, OR start climbing if he's close enough.
That was the easiest part. The actual mechanics of climbing a ladder, and falling off at the right times, esp. the climbing-onto-a-ledge animation handler, were the hardest.
Although there's also something very rewarding about doing something hard and succeeding.