Climbing Animation Issues

I’m working on a side-scrolling platformer for a class, and I’m having difficulties getting the climbing mechanic nailed down. I’m absolutely sure I’m going about this probably one of the most resource intensive ways, but here is my current setup.

Image URL

So every frame it checks if I’m in front of a ladder (I forgot to add the image, but it’s a simple ladder blue print that sets the boolean atLadder to true if in the volume, and false when not).

  • If I’m not, the gravity remains the set 3.0, and onLadder remains false.
  • If true, it checks that I am facing the ladder.
    • If true, boolean onLadder is set to true, then the z velocity is modified, +500 when I press ‘W’, -500 when I press ‘S’, and 0 when nothing is pressed.
      The included jump setup has been modified to jump off and up, facing the other direction if on the ladder.

The animation blueprint sets onLadder_AnimBP to true if onLadder is true. The included AnimGraph for Default shows how I set the animation state changes.

MY PROBLEMS

  • When I approach the ladder and enter the volume, the character immediately enters the climbing animation state, however I am unable to move the character up or down.
  • When I jump onto the ladder, my character stays in the falling animation, however the gravity is at 0 and I can move up and down, as well as jump off of it.

onLadder is firing as true, however these issues are persisting. Does anyone have any ideas?

-Derek

So I posted this and of course, after moving things around, fixed my issue with the animation transition - I hooked the climb transition to the wrong section of the jump animation, the JumpEnd. This should have instead been connected to the JumpStart and JumpLoop, and NOT the JumpEnd. Easy enough fix. I also found a workable fix to the first stated issue - I moved the volume that sets AtLadder to true up just above the player mesh height, so the character must now jump onto the ladder. I would appreciate it if anyone knows another fix, however, that allows my character to simply walk up to the ladder and move up it, if this is feasible. I might be mixing something up in the blueprints to keep this from working properly. Thanks!