Trigger character animation seamless

Hey pepz.

So let’s say we got a first person character. And this character walks to some stairs.

I want the character to trigger an animation where the character walks up the stairs. but only when the player presses the forward or the backward key to get down the stairs.

The effect is used in “The Forest” or “the callisto protocol” and surely many others.

I’m looking for this seamless effect. Do anyone know how to make this effect or know where I should look?

Hey @Zipax64!

Could you possibly grab some video of an example? Because there are some questions left. ALSO you may not need an animation. Could be done with a timeline, a spline… there are paths but I’m not sure what you’re going for exactly.

@Zipax64 Not sure If I completely grasp what you are going for (haven’t played either games), but I did a quick project where once you enter a volume (start and end) the ai will take over and move you with the nav mesh to the top or bottom of the stairs (something like in older resident evil titles).

An example of that could be where the characters walks down the stairs. we see the character change animation to walk down the staris and then changes to normal walking again when the characters reach the end of the stairs.

We also sees the foot placement is hitting the steps the right way. (Only between 4:41 - 4:50)

Another example of this effect could be where the player goes up to a crack in some rocks where the character has to slide through the crack. the character change animation to slide through. by a trigger near the crack.

or should this be toggled in the “Animation blueprint”?

So what i’m after is:
How do I create an controlled animation “sequence” where the character only moves forwards or backwards when the player is hitting the movement keys W or S

I’m looking for at way to make the character walk staris in a realistic way.

Hope this make sense? :sweat_smile:

With the slide through you could just play a character animation montage, which would be progressed by the w key (you could layer on some sort of idle breathing when the player is not progressing the animation).

If the player “loses control” on the stairs and the character just runs up / down them them and then regains control at the end, then I have that in the scene I sent. (hard to tell without playing it)

Not sure why you would not just have normal motion on the stairs though?

Tried your possess solution. not what im looking for. but nice technique :slight_smile:

The montage sounds like a good solution.
-thx