06 Stamina System [UE4 - Survival Game]

Опубликовано: 14 Октябрь 2024
на канале: TwoNeurons
2,140
102

In this #UE4 #SurvivalGameTutorial for developing a survival game, we will implement a stamina system. This system will tie into our sprinting system (video 4 in this series). We will tie this system into our UI (videos 8 and 9 in this series).

In the next video, we will add in the character hunger system.

00:00 - Intro
Step 1: Stamina Checka and depletion
00:55 - Step 1a: Two Primary events and Stamina Check start
05:16 - Step 1b: Get Stamina and stamina check conditon
07:40 - Step 1c: False on initial condition check
07:59 - Step 1d: Check has Stamina
09:04 - Step 1f: Deplete Stamina
10:57 - Step 1g: Stopping sprinting
Step 2: Stamina Regen
13:27 - Step 2a: Inital regen check
15:01 - Step 2b: Stamina Regen
Step 3: Can Sprint?
16:29 - Update Spritning
Step 4: Timer
18:25 - Stamina Check Timer
Step 5: Debugging and updates
19:35 - Test (and noticing an error right away)
19:51 - First fix (not equal)
20:32 - Preventing going below 0
21:57 - Fix two (the checks are backwards)
23:39 - Outro

Assets used in this project: http://bit.ly/SurivalGame

---------
Support this channel:   / twoneurons  

---------
Follow me at:
Twitter:   / twoneuronstream  
Twitch:   / twoneurons  
Discord:   / discord  

#UnrealEngine5 #UnrealEngine4 #UE4Tutorial