Unreal Engine 5 Tutorial - Survival Game Part 2: Stamina Bar

  Рет қаралды 9,815

Ryan Laley

Ryan Laley

Күн бұрын

Пікірлер: 52
@gamerlinkog
@gamerlinkog Жыл бұрын
I just want to say Dont stop You are my inspiration and motivation
@funkmunki
@funkmunki Жыл бұрын
Another awesome tutorial! Just a note for anyone who is new like me: The Value for the AlterStats when jumping should be a negative number. Thank you Ryan for helping me finally learn to use UE.
@WarpaintStudios
@WarpaintStudios 11 ай бұрын
Thestamina depletion when jumping is wrong on 2 points, first it should be -0.05 (negative) second, due to the way the input works you can spam jump ad keep depleting the stamina even if you jump less times as it goes by jump button pressed and not jump initiated and completed.
@intrepidoak2618
@intrepidoak2618 8 ай бұрын
To make your player stop sprinting when stamina = 0 with new Enhanced Action Inputs you need to do it on the Start Sprint Node in the Event Graph. From Start Sprint get a branch, the condition for the branch is Get Stats node then get FIND [Stamina] then Equal node [0.0] then from the True to Stop Sprinting. NOTE: IF THERE IS A BETTER WAY PLEASE POST SO I CAN CHANGE
@MrTweedg87
@MrTweedg87 7 ай бұрын
Thank you, I did exactly what you did but i moved your code into the Start Sprint function. So basically I removed the "Bind Event to On Stat Depleted" because it wasn't doing anything and instead added your code after the "Set Is Sprinting to true Node".
@MrTweedg87
@MrTweedg87 7 ай бұрын
@intrepidoak2618 .NEW FIX. Change the line from "EnhancedInputAction Sprint" to come from the "Started" and not the "Triggered". Then set it up how Ryan had it with the dispatchers. This worked for me. With the other method I ran into issues in the next episode so had to start trying things and changing it to started worked. Just to make it clear.. from "EnhancedInputAction Sprint" Started---> Start Sprint. Completed----> Stop Sprint.
@nexusarmada201
@nexusarmada201 10 ай бұрын
Ok so time for another comment helping those who struggle im running on one of the new updates that add enhanced input action it doesnt mess with the way things are done in this tut directly but something to note is if you have the same problem i did where the stamina bar is depleted and your still spriting make sure to check the string logs that appear on the left side when your "play test" mode and keep running until you reach the min value you set and if that isnt matching with your stamina bar percentage wise i went back into the file "CircularBar" and changed the multiply value that is connected to the right of the vector toradial value and set the b to 1 instead of 0.5 and that fixed my issue
@keelei
@keelei Жыл бұрын
Always love to use components for these kind of things. Make it much better to reuse it e.g. enemies. Anyway. Good work as always!
@TheBurntPeanut
@TheBurntPeanut Жыл бұрын
Ryan Is A Very Cool Fellow
@TheBurntPeanut
@TheBurntPeanut Жыл бұрын
RyanIsCoolFellow=True
@willkamechehe1496
@willkamechehe1496 Жыл бұрын
using tick isnt a good idea, using a timer would be better, because now your stamina will be influenced by the fps
@semmert
@semmert Жыл бұрын
I think that's why he's using world delta seconds, no? Then it uses real-world time, and not FPS like a regular tick would?
@dillonelliott2567
@dillonelliott2567 10 ай бұрын
At 6:30 when he changed the StatsBar Widget to print a string to make sure it is getting a value mine doesnt. I have all the other 1s and 0s but there was no value that was changing. Could anyone help?
@romankhaiboulin5495
@romankhaiboulin5495 8 ай бұрын
did you find the problem. i get the same result
@HenryTheOneAndAHalfth
@HenryTheOneAndAHalfth 6 ай бұрын
Been following the Inventory series, and now rolled into the Survival series. BUT I noticed something rather major here. In the inventory series we were working multiplayer, but here the testing is happening ONLY on single player? The sprinting is simply not working on the client when testing on multiplayer ... Anyone got a fix?
@TruixBeams
@TruixBeams Жыл бұрын
how would i set up a changeable stamina amount, if I have powerups that would increase the amount of stamina the player has?
@kristalin9119
@kristalin9119 10 ай бұрын
Does anyone know what key is using for Primary Action on 1:15? Left Mouse Button I guess
@Djinni_usTTV
@Djinni_usTTV Жыл бұрын
12 minute mark, finishing the stamina bar so you stop sprinting when the stamina runs out. i scrapped it all, remade it and then rewatched for all my nodes to make sure they're correct. The character won't stop sprinting. I'm thinking it has to do with the fact that he uses the deprecated input action nodes and im using the enhanced input action nodes but idk how to get the sprinting to stop when the stamina is empty
@KrapDanooob
@KrapDanooob Жыл бұрын
Same for me and yes deprecated input action solve the issue
@KrapDanooob
@KrapDanooob Жыл бұрын
But you can also add a branch after the "Start Sprint" node in your character event graph with Get stats->Find->Equal to 0->Stop Sprint. It works too but I'm a newbie so I don't know if it's gonna be an issue after ^^'
@imwheeliebad
@imwheeliebad Жыл бұрын
For the new IA Inputs make sure you use Triggered = Start Sprinting > Completed = Stop Sprinting :)
@Djinni_usTTV
@Djinni_usTTV Жыл бұрын
@@KrapDanooob Awesome, thanks!! This solution worked for me.
@Djinni_usTTV
@Djinni_usTTV Жыл бұрын
@@imwheeliebad Got it, Thanks!
@TundraTheLootGoblin
@TundraTheLootGoblin Жыл бұрын
This is great but what if I want to make the player able to improve there stats based on a point system from leveling. This will still use up the stamina at the same rate with no bonus because it is draining on a percent base. How do we implement this.
@danielridge6000
@danielridge6000 Жыл бұрын
You could add a variable to multiply the rate by whatever you want so a fraction would be a debuff and anything over 1 would be a buff.
@TundraTheLootGoblin
@TundraTheLootGoblin Жыл бұрын
@@danielridge6000 Thanks
@imwheeliebad
@imwheeliebad Жыл бұрын
I add Max Health, Max Stamina so i can influence them later on with Buffs/Debuffs
@oguzmuslu
@oguzmuslu Жыл бұрын
@joeanrachelmiller6529
@joeanrachelmiller6529 Жыл бұрын
During the inventory part of the series someone mentioned putting the tick and line trace on the character and just reporting it over to the inventory component. Can someone discuss the computer theory here on what would be better to do for scaling a project larger...? 1) leave the line trace and tick on the inventory component PLUS make the tick on the character or 2) make one tick on the character and connect the chain of functions to it? The only reason I'm asking is because nothing bothered my pc until I tried to play PUBG the other day thinking that I would test a popular free unreal engine game. My pc wanted to overheat and I was like what is the code issue here? I play a lot of other games without issues. I wouldn't want to melt anyone's hard earned money. Someone, anyone discuss this or give links to how to properly set up a project for load between cpu, gpu, etc... please. For the sake of all gamers.
@bradennichols3154
@bradennichols3154 Жыл бұрын
Where is part 1??
@ahmetozan4754
@ahmetozan4754 11 ай бұрын
Birden fazla bar 0 oluyurdu. İstatistik adını doğru yazdığınızdan emin olun:)
@imwheeliebad
@imwheeliebad Жыл бұрын
Why does my stamina not fully deplete? Gets stick at a little bit of bar showing so never stops haha
@animegod5746
@animegod5746 Жыл бұрын
3months late but i think i fixed that, under alter stats he both clamps it between 0 and 1, while also making it so that clamp is
@imwheeliebad
@imwheeliebad Жыл бұрын
@@animegod5746 Thanks for sharing, I fixed it a day after returning to the project (needed a breather). This sounds similar to what I did though, without going back to check exactly.
@yeetdapizzaz
@yeetdapizzaz Жыл бұрын
The stamina bar won't deplete, I have everything right :(
@ItsSidrun
@ItsSidrun Жыл бұрын
same
@ItsSidrun
@ItsSidrun Жыл бұрын
Hey man, i think i have found the issue, for me it worked you need to rewatch hes first video. Or if you understand me, so...
@ItsSidrun
@ItsSidrun Жыл бұрын
In the circular bar material the node which goes into If Node That has Parameter name "Precent" you need to have same name in W_Statbar Graph Last node "Set Scalar Parameter Value" parameter name Has to be Precent.
@romankhaiboulin5495
@romankhaiboulin5495 8 ай бұрын
@@ItsSidrun I changed it but it still doesn4t work, any ideas?
@benjamin71965
@benjamin71965 3 ай бұрын
You have also to use 'call on stats update' on the true branch in the alter stats function
@Spectre_Beats
@Spectre_Beats Жыл бұрын
If I try to alter any of the other stats, it seems to break the stamina bar
@djodjo82
@djodjo82 Жыл бұрын
So slow the serie... 😔
@TheFlyingEpergne
@TheFlyingEpergne Жыл бұрын
Ungrateful
@djodjo82
@djodjo82 Жыл бұрын
@@TheFlyingEpergne oh no
@imwheeliebad
@imwheeliebad Жыл бұрын
Patreon my dude...Support those that help you so much ;)
@tostane
@tostane Жыл бұрын
#1 every survival game that has stamina and food or oxygen thar runs out and kills me i get refunds and stop playing them so you need to think of a different method if you want to make money.
@kritikalskillz5437
@kritikalskillz5437 Жыл бұрын
sounds like you shouldnt be playing SURVIVAL games....
@tostane
@tostane Жыл бұрын
survival games need to change one after another die after just weeks. @@kritikalskillz5437
@semmert
@semmert Жыл бұрын
then you don't like survival games.... Go play CoD or something.
@Shifae_
@Shifae_ 6 ай бұрын
it's your game, do what you'd like. it's all good, keep coding.
Unreal Engine 5 Tutorial - Survival Game Part 3: Stamina Regen
11:11
Unreal Engine 5 Tutorial - Survival Game Part 1: Player Stats
28:26
ПРЯМОЙ ЭФИР. Золотой мяч France Football 2024
4:41:06
ROSÉ & Bruno Mars - APT. (Official Music Video)
02:54
ROSÉ
Рет қаралды 222 МЛН
I Made a Game With Only FREE Assets In Unreal Engine 5
11:45
Smart Poly
Рет қаралды 507 М.
How To Create A Weapons System (2.0) - Unreal Engine 5 Tutorial
2:15:19
Pitchfork Academy (MizzoFrizzo & Co.)
Рет қаралды 26 М.
How To Create A Top Down Shooter Game In Unreal Engine 5
31:55
Unreal University
Рет қаралды 45 М.
Unreal Engine Blueprint Fundamentals |  Class #1
59:45
Ask A Dev
Рет қаралды 81 М.
Smooth CROUCHING in UNREAL ENGINE 5
5:44
Buvesa Game Development
Рет қаралды 25 М.
Sprinting And Stamina - Unreal Engine 5 Tutorial
17:00
Matt Aspland
Рет қаралды 74 М.