How can I create a sprint sequence on a button that makes the character run even if I'm not pressing forward?

Hi guys,

Lots of questions lately, I’m not familiar with all the blueprint functions yet. I am trying to create a sprint input where the character makes a dash forward and the camera zooms out a bit to give the effect of acceleration. I managed to zoom the camera out but it was also doing it if the character was not moving or moving backwards which was not neat. I would need to force the character’s forward motion with the pressing of the sprint button (shift on keyboard, left on gamepad), but when I tried by myself the animation was working but the character was stuck in place until the sprint button was released, then the character was slowing down and the camera was going back to its place.

Anyone knows how to do that propelry?

Here’s my repo: link text

Note That I deleted the camera transition for now. I’ll put it back when the sprinting sequence works.

I dont quite understand what you are actually trying to do but let me see if I got this correct.

When you press Shift to sprint, you want to let go of the sprint button but keep the character sprinting?

if i remember right theres a way to set velocity. i was involved with answering this same question about a month ago if you do some searching you may find that question which was resolved.

I would like to get the character moving forward with shift without have to press forward.

make something like this.

Shift key pressed > set bRunning True to branch get bRunning > if true then take true pin and pin it to the forward movement controls.

Shift key unpressed > Set bRunning False. meaning that because bRunning = false then the branch will just go to the false part of branch which is doing nothing

but do that AFTER the sprint function so that way your character still runs faster than normal speed

OR if you are handling the speed of the running on the character then after the branch make it set the run speed variable and then from the run speed variable you go to the movement controls

Thanks! Sorry for the late reply, yes it works perfectly!