Simple ladder climb (no animation)
Hello! Recently I've started creating a very compact house on Blender as hobby. I decided to go even further and add it into a little "game" to create a save heaven for myself. I'm new to UE and I'm stuck at something that may be really simple for the most experienced members but not for me. To access the attic the player has to climb a ladder. Here is where I'm stuck, I need a very simplistic ladder climbing system without any animation (like is on Minecraft or Hal-Life/Counter Strike) for this action. I've searching for tutorials, but everything I've found was a bit too complex for my project.
asked Sep 19 '16 at 02:58 PM in Blueprint Scripting
This sounds like an excellent little project! Great way to get your feet wet in Unreal.
First off, have you attempted anything yet? Do you have any familiarity with Blueprints or C++ coding? I personally prefer working in C++, but this sounds like something that can be done very quickly in Blueprints if you're code-shy.
If it were me approaching this, I would first set up one collision box at the base of the ladder and one at the top. That way, you will be able to detect when the player runs in to the ladder's space, as well as if the player is going up the ladder (they're overlapping with base collider) or going down (overlapping with the top collider.)
From there, we could go a few different ways. One way would be to change the controls from X & Y horizontal movement to Z & Y vertical movement, like Minecraft does. Another approach would be to turn off player input and simply start moving the player upwards until they reach the top, then turn player input back on. A VERY simple solution could be to teleport the player from the base of the ladder to the top of the ladder, possibly with a fade-in / fade-out transition if you really wanted to get fancy.
So really, the solution to your problem depends on how much coding/blueprinting you're willing to do, balanced against the effect you're wanting.
Follow this question
Once you sign in you will be able to subscribe for any updates here