Це відео не доступне.
Перепрошуємо.

How To Make A Stamina System | Unreal Engine 5 Tutorial

Поділитися
Вставка
  • Опубліковано 8 вер 2023
  • In this tutorial, we will be learning how to setup a stamina system with sprinting and regen for your Unreal Engine 5 project using simple techniques. Using this method to update the stamina is a lot more optimized compared to creating a binding as the bindings are called very often but using this method your stamina will only be updated when an event dispatcher is called. In just a few easy steps, you will have a stamina system which will regen when not being used. We will be using Blueprints to Follow along with step-by-step instructions and you will have a optimized working stamina system in no time! UE5 Tutorial, Unreal Engine Tutorial.
    Like Or Subscribe Maybe :)
    Fade Stamina Bar - • How To Fade Stamina Wh...
    Make A Health System - • How To Make A Health S...
    Support me on Patreon: www.patreon.com/user?u=81677158
    Support me on Ko-fi: ko-fi.com/fcbdev
    #unrealengine5 #ue5 #ue5tutorial #unrealengine

КОМЕНТАРІ • 63

  • @TFArseling
    @TFArseling 2 місяці тому +2

    You have one of the most soothing voices ever, Almost on par with David Attenborough.
    Please use that gift to create tutorials on explaining what the nodes do.
    Explaining nodes, meaning don't just link stuff to other stuff, I mean link stuff to other stuff while giving a brief explanation on what each of those nodes they do ^^
    Otherwise, aspiring coders will just be copying for results.
    Teach a man to fish.." blah blah blah, blah blah. "
    -Crowley

  • @DinoLarn
    @DinoLarn 9 місяців тому +4

    underrated everything works and just for you to know you were the 1 of 3 that made stamina system actually work you deserve at least 10k at least...

    • @FcbDev
      @FcbDev  9 місяців тому

      Thank you for the feedback I really appreciate it 😁🙏 I'm glad I could help 💯

    • @tech-boy334
      @tech-boy334 4 місяці тому

      I disagree. Yes the tutorials aren't that bad, but they would be 10x better, if he would explain what everything does, so you can ACTUALLY learn from it, also, the code has bugs, for example, the stamina bar reduces even if you aren't walking and only pressing shift since we never check if we are walking, then, the character will actually start with the sprint speed as its walk speed. And I've seen this happen on multiple of his tutorials, small details which get left out, but are basically mandatory. Also, the code in general is very unoptimized and not very performant.
      But I appreciate his work anyway

  • @unluka_3077
    @unluka_3077 Місяць тому +1

    best tut ever, love you 😘😘

  • @OutbreakAnimations
    @OutbreakAnimations 7 місяців тому +1

    Wtf?? It was that simple!?? I'm genuinely mad wtf!! 10/10 Tutorial thank you

    • @FcbDev
      @FcbDev  7 місяців тому

      No worries I'm glad I could help 💯Thank you for the feedback and support I really appreciate it 😁🙏

  • @ethanhaynes6930
    @ethanhaynes6930 6 місяців тому +1

    Massive Fcb Dev W, only tutorial I found that actually worked, thx G

    • @FcbDev
      @FcbDev  6 місяців тому

      No worries I'm glad I could help 😁 Thank you for the feedback and support I really appreciate it 🙏💯

  • @blast8ify
    @blast8ify 11 місяців тому +4

    this is tbe best stamina tutorial!

    • @FcbDev
      @FcbDev  11 місяців тому

      I'm glad I could help 😁💯 Thank you for the feedback I really appreciate it 🙏👑

  • @michaelthompson5252
    @michaelthompson5252 Місяць тому +1

    I can hear your puppers.

  • @christophercapek1885
    @christophercapek1885 7 днів тому

    Great video! My sprint bar depletes by 1 tick when LShift is pressed, but then begins regen while shift is still pressed, resulting in infinite sprint. Sent discord pm. I'll be checking out all of your vids!

  • @Paceyyyy
    @Paceyyyy 11 місяців тому +2

    Thanks man this is awesome

    • @FcbDev
      @FcbDev  11 місяців тому

      I'm glad I could help 😁🙏 Thank you for the feedback 💯👑

  • @thehobbist5544
    @thehobbist5544 3 місяці тому

    Im pretty late, but I was wondering if you had any solution to fix the problem of where if your just pressing shift alone it still drains? So like some way that the shift key only drains stamina when you hold shift AND are walking

  • @OilHand1224
    @OilHand1224 4 місяці тому

    How can I solve the problem that my stamina is deducted even when I just press Shift alone?

  • @VrFreddy2
    @VrFreddy2 6 місяців тому +1

    This is the only sprint and stamina tutorial I could get to work so it works perfectly the only thing I wanna know about it is how to make it so you can only sprint if you didn’t use all of your stamina, could you tell me how to do that?

    • @FcbDev
      @FcbDev  6 місяців тому

      Thank you for the feedback and support I really appreciate it 🙏So basically what you want is that if you've used all the stamina then you don't want to be able to use it again until it's full? 💯

    • @FcbDev
      @FcbDev  6 місяців тому

      Also if it would be easier with screenshots then feel free to add me on discord "fcbdavis" 😁🙏If not then let me know and I can explain it here 💯

  • @weifoago2613
    @weifoago2613 6 місяців тому +1

    Loved your tutorial, everything worked accordingly expect for the UI not showing in the game itself, any idea of what might have caused that?

    • @FcbDev
      @FcbDev  6 місяців тому +1

      Thank you for the feedback and support I really appreciate it 😁Yes that would be my fault as when I made the tutorial I hadn't shown the create widget, you can add it to your screen by going into your character bp and on BeginPlay drag and Create Widget and then drag from there to Add to Viewport 🙏

  • @leaky4230
    @leaky4230 2 дні тому

    The hud part isnt showing up for me i dont have a player hud

    • @FcbDev
      @FcbDev  2 дні тому

      That's just a widget I put my other widgets inside, you don't need it you can just go into your character blueprint and on beginplay drag and create widget then drag and add to viewport

  • @JawadAnzour
    @JawadAnzour 5 місяців тому +1

    hello man great tutorial , but my stamina bar dosen't increase , it can only decrease why ?

    • @FcbDev
      @FcbDev  5 місяців тому +1

      Hello, thank you for the feedback I really appreciate it 😁 If you'd like to add me on discord "fcbdavis" and send screenshots then I could take a look to see what the issue might be 💯🙏

    • @JawadAnzour
      @JawadAnzour 5 місяців тому +1

      @@FcbDev ok thanks you so much 🙏

  • @bikelife_gus319
    @bikelife_gus319 3 місяці тому

    please respond! i followed the tutorial everything works great except for when im in the game and i dont use my stamina it just keeps goingup. like when i first load in and use it the first time it works right it immediatley starts going down but once it refills the bar it just keeps going up it that make sense

  • @TheLoreLabs
    @TheLoreLabs 8 місяців тому +2

    huh watched it twice i must be missing something simple af to get it to show up lmao gunna watch it a third time

    • @FcbDev
      @FcbDev  8 місяців тому +1

      You're right, I'm sorry about that 🙏 The easiest way to get it on your screen is to go into your character bp and on BeginPlay drag and Create Widget with a Get Player Controller node for the Owning Player pin and then drag from the Return Value and Add to Viewport 💯

  • @B_Bgames
    @B_Bgames 4 місяці тому

    i was wondering is there a way to make it so when your out of stamina you cant jump

  • @toubx9722
    @toubx9722 4 місяці тому

    How do i add something to it? Like a roll or a dash

  • @dominikprincz4151
    @dominikprincz4151 5 місяців тому +1

    Hi, sadly the staminabar goes down even if i just press the shift key and not moving.. i have added you on discord. Can you help pls?

  • @akiroshinomori8345
    @akiroshinomori8345 6 місяців тому +1

    when my stamina end, my character still can run, but i repeat everything from the video and checked it few times. What can i do(? How can i make my character stop after stamina end? @FcbDev

    • @FcbDev
      @FcbDev  6 місяців тому +1

      Hello, if you'd like to add me on discord "fcbdavis" then I could take a look at your screenshots to find out what might be the issue 💯🙏

  • @kronas56
    @kronas56 4 місяці тому

    Please make some shooter mechanics

  • @RatoBombaGamesTM
    @RatoBombaGamesTM 6 місяців тому +1

    Just a question, how can I show the HUD, just only when I pressed shift? I want to hide the HUD when I not pressing the shift..

    • @FcbDev
      @FcbDev  6 місяців тому

      Hello, would you want to still be able to see the stamina when it's not full and have it fade out when it's full or you just want it show with shift and hide when released? 🙏

    • @RatoBombaGamesTM
      @RatoBombaGamesTM 6 місяців тому +1

      ​@@FcbDev exactly this, when the bar it's not full, when I still pressing shift, I want to see the bar but when I recovery 100%, I would love see the bar fade out smothooly.. Tks for answer me

    • @FcbDev
      @FcbDev  6 місяців тому

      @@RatoBombaGamesTM No worries sounds good 😁 I believe my most recent video will help with this ua-cam.com/video/pLVUi9wlDA0/v-deo.html 🙏

  • @petefrompat3922
    @petefrompat3922 6 місяців тому +1

    I have a slight issue and I was wondering if you could help, when I run out of stamina instead of only being able to walk I can still run. I'm hoping I've just made a small mistake but if you could help that'd be great. 👍

    • @FcbDev
      @FcbDev  6 місяців тому +1

      Yeah no worries feel free to add me on discord "fcbdavis" if screenshots are easier 😁🙏

    • @petefrompat3922
      @petefrompat3922 6 місяців тому +1

      @@FcbDev yeah I will do that later tonight 👍

  • @ivomelonio4333
    @ivomelonio4333 10 місяців тому +2

    Esse tutorial funciona na unreal engine 4?

    • @FcbDev
      @FcbDev  10 місяців тому

      Sí, este tutorial funcionará en UE4 😁💯

  • @EyLuca
    @EyLuca 7 місяців тому +1

    Hey, Thank you for that quick and nice Tutorial!
    I put the Stamina Bar to the HUD, but always when i start to run, the Stamina is immediately empty and i cant run.
    So the Bar turns immediately from Yellow to Grey.
    Is there any way you can help me there? I tried for myself now for like an Hour, but cant come to any solution.
    Thank you again! :)

    • @EyLuca
      @EyLuca 7 місяців тому +1

      Okay i got it! I didnt put the Value 1 on 'MaxStamina' in the variables.
      Thank you so much again for that great Tutorial!
      Do you have another one where you show how to hide the bar when the player is not running?

    • @FcbDev
      @FcbDev  7 місяців тому +1

      @@EyLuca No worries I'm glad I could help! Thank you for the feeback and support 🙏 I don't currently have a tutorial for hiding and showing the bar when being used but I can definitely help you with that through screenshots, if so feel free to add me on discord "fcbdavis" 💯

    • @EyLuca
      @EyLuca 7 місяців тому +1

      @@FcbDev
      Damn, you're awesome!
      I just added you!

  • @johndev2023
    @johndev2023 9 місяців тому +1

    Hello friend, i have a issue in a different stamina system in enchanchedinputaction. Idk why but i cant fix the problem with drain stamina while im walking and i dont want to change all the systesms tbh can u help me? Thanks and great system ours is better tbh.

    • @FcbDev
      @FcbDev  9 місяців тому

      So your system is better but you need my help to fix your system? 🤔🤌

    • @johndev2023
      @johndev2023 9 місяців тому +1

      @@FcbDev I want to say "yours" hahaha this one is complex asfk, im learning also my main language is not english sorry for the mistake words.

    • @FcbDev
      @FcbDev  9 місяців тому

      @johndev2023 All good, so you have an issue with stamina draining when not moving? 🙏

    • @johndev2023
      @johndev2023 9 місяців тому +1

      @@FcbDev Yes Sr, did u think about make a discord for make a community? Thats gonna grow up ur fan base guys

    • @FcbDev
      @FcbDev  9 місяців тому

      @@johndev2023 Yes I have thought about making a discord but I'm not very active and most discords need rules and people to enforce those rules so at this point I'm not looking to make one but possibly in the future 🙏 As for the stamina system, is the problem that when you're not moving but holding sprint that your stamina drains?

  • @DelttaGaming
    @DelttaGaming 7 місяців тому

    This didn’t work for me

    • @FcbDev
      @FcbDev  7 місяців тому

      What part isn't working? 🙏If you can't see the progress bar then you can go into your character bp and on BeginPlay drag and Create Widget and then drag and Add to Viewport

    • @majoblak2525
      @majoblak2525 4 місяці тому

      @@FcbDev Hey I will just ask you here can u help us with the problem where if you stand still and hold shift it still drains your stamina, others say to use velocity but it is not good enough