I'd like to program a climbing ladder. suggestions/helps?

I have successfully made climbing ladder ability. The toughest part is to define where ladders would be. The other stuffs such as climbing down and climbing up animation + transition are easy to make.

I could share you how but TBH I don't think how I define ladders is best way. I need to research better ways.

Once ladders are defined, the next step is to check for it in WALK and UP animations. I only use these 2 since players must be walking in they want to climb ladder.

Though from my experience in implementing this, climbing ladder from below is easier than climbing from top of ladder. Not because of script problem but more to detection time.
I guess that's because naturally ladders are placed on walls so when players walk to ladder to climb up, they are blocked by walls so they won't miss the ladder but when climbing down from top, nothing blocks player so they usually miss and fall down instead.
 
Thank you for you answer! ;)

I started programming.
I must say that is looking strangely easy.
The only difficulty I'm experiencing is the check of an empty space at the top or bottom of the ladder.

That is, how can I check if once the character has reached the end of the ladder there is an empty space to walk?

The answer is easy if you are on ONE wall or a platform
But when there are multiple platforms/walls?
I design to better understand ...

immaginejjlk.png
 
@Bloodbane
You can use entity and didhitscript/takedamagescript.

anim idle
....
attack 0 0 100 10 0
noreflect 1
....


This attack doesn't cause any effect so it is safe, in theory.
 
I already used that for enemies but haven't tried to players yet. Thanks!

how can I check if once the character has reached the end of the ladder there is an empty space to walk?

I simply set ladder's length (or height) and base of ladder. While climbing ladder, both are checked so entity knows when climbing ends when entity reaches end of ladder.
I don't check wall nor platform at all by this.
 
Back
Top Bottom