04 Sprint System [UE4 - Survival Game]

preview_player
Показать описание
In this #UE4 #SurvivalGameTutorial, we will implement a sprinting system. This will include an always sprinting/lock sprint system and a press/release toggle system for sprinting. In two videos (video 6 in this series), we will tie our sprint system to a stamina system.

In the next video, we will work on our character health system.

00:00 - Intro
00:55 - step 1: Inputs
02:24 - Step 2: Set is Sprinting
03:55 - Step 3: Set is Walking
04:20 - Test
04:33 - Step 4: Turning steps 2 and 3 into functions
05:02 - Step 5: Always Sprinting
07:13 - Test 2 and Demonstration of Potential Issue
08:15 - Step 6: Creating Default Walk and Sprint Speeds
09:51 - Step 7: Set Default Walk and Sprint Speeds
11:39 - Step 8: Calling Set Movement Speed (Begin Play Setup)
14:17 - Final test

---------

---------
Follow me at:

#UnrealEngine5 #UnrealEngine4 #UE4Tutorial
Рекомендации по теме
Комментарии
Автор

7:05 I know were going to be here in a moment. Ahaha. By the way. Best totorials yet :)

nitrogamer.
Автор

Uhhhh, just because of the Unreal text size, when you say "I'm going to change "this" or "i'm going to grab this here" or something like that, it may be a bit easier to name what you're referring to instead of "this" so people don't have to take a closer look at the screen or screenshot and zoom to see which specific thing you were referring to. Though I dunno, maybe the circumstances would be different already for Unreal 5 onwards.

mangonauts
Автор

When I press AlwasSprinting by Pressing caps lock then releas it and press Sprinting by pressing caps then release sprinting by releasing caps I change to walking (all fine now) and then you have to pres AlwasSprinting (caps lock) two times because the Flip Flop is locked on option A Is Sprinting and changing to B is Walking but we are already in this state how to fix this issue that I dont have to press sprint lock two times.

SometimesLifeSucks
Автор

Nice series, just a curiosity:
is it better to use "event begin play" or "construction script" to set the starting values?
Greetings from Italy.

RsD
Автор

Noticed a glitch. Hit the caps lock, sprinting, hit shift, and you are back to walking but the caps lock is still on. Press caps lock twice to get back to always sprinting.

dramoth
Автор

DUDE I BET YOU HAVE WAY MORE THAN 2 NEURONS sorry for the caps i was sprinting

Автор

Glitch: press caps lock, sprinting, hit shift, walking... caps locks is still on.

dramoth
Автор

good video however I set the walking speed to 300 and sprint speed to 600 and in blueprint animation I justified the value from 375 to 600 and the walk to 300

BangBang-fdde