How do I create a Sprint Blueprint?

By the title I’m sure you know what this questions is referring to… And I know this question has been asked before. The only problem is, some of us cannot access the information posted on epic forums. It has been 3 days since I have registered and still cannot access the thread. My questions is, can someone re-post the information on the Blueprint Sprint Setup (can be found here) to the “Blueprint Visual Scripting” section of the Unreal Engine Forums here?

It would greatly be appreciated!

1 Like

Howdy!

The information in that post will take some time converting over, as a workaround in the meantime, are you looking for a solution for a sprint mechanic? You can set the Max Walk Speed to whatever you’d like when a button is held, then reduce it back to it’s default setting when released to achieve the same effect.

Is there something extra you are looking for with sprint?

-W

1 Like

Yes, that is what I am looking for. Just unsure of how to do it. I have no problem with assigning the action mapping. I just cannot figure out how to configure the blueprint scheme…

In short: I do not know how to change the “Max Walk Speed”…

Give this a shot:

  1. Drag your Character Movement component into the Event Graph of your Character Blueprint.
  2. Drag off the Character Movement out pin and search for Set Max Walk Speed.
  3. Create two float variables, Run Speed and Walk Speed for example, and set their values to whatever you’d like (for the Blueprint Third Person Template I set Run to 600 and Walk to 175).
  4. Hook those variables up to the Set Walk Speed nodes as shown below.
  5. On the Defaults tab of your Character Blueprint, search for Max Walk Speed and set that to what you set your Walk float variable to.

That should be all. You’ll walk by default at the speed you defined and run when your sprint action is held, when released you’ll return to walk.

Hope this helps!

-W

Character BP

Defaults Tab of Character BP

PERFECT! That is exactly what I was looking for! Thank you very very much!

Just another quick question… I know with crouch there is already a crouch speed multiplier variable that can be changed within character movement blueprint. Is it possible to add a Run/Sprint speed multiplier to the same location?

To be honest I’m not sure how to word what I am trying to ask…
I can provide more details when I return to my office.

I got the same problem yet when I add the input and try to add the “set max walk speed” i cant… set max walk speed doesnt exsits… any thing i am doing wrong?

Hey, try right clicking in your character blueprint and type in Character Movement. Get this node, then drag out the pin and type in set max walk speed. You should be able to set it there!

Sorry for the delayed response. Yes, there is a Set Crouched Speed Multiplier node that can be accessed by dragging off the Character Movement node.

-W

Hi Kaiser,

To access the Set Max Walk Speed node, you’ll need to drag off the Character Movement component and search for Walk Speed in the context menu. By default, under the My Blueprint window this isn’t shown. You’ll need to check the Show Inherited Variables checkbox and look under the Character section.

-W

this is my first example but i hope this is what you are looking for.

so i like your approach i just don’t see how it tells you to stop sprinting like mine does when we are out of stamina *** the if at the end of the true us stamina gate

Hello, I am new to UE4 too. This is what I did…
There’s two tier of checks to prevent player from moving fast while holding the sprint key during crouch & also force player to crouch when the crouch key was pressed during sprint.

EDIT: Opps! Just realised that this is an old post.

i have a question how i can make those red things i cant find them