Creating A Dynamic Progress Bar | For Our Stamina - Unreal Engine 4 Tutorial

Поділитися
Вставка
  • Опубліковано 12 чер 2024
  • Hey guys, in today's video, I'm going to be showing you how to create a progress bar to display a value from your character blueprint, for example; stamina, health, hunger, etc.
    #Ue4 #UnrealEngine4 #Ue4Tutorial
    ___________________________________________________________________________
    00:00 - Intro
    00:22 - Tutorial
    04:53 - Overview
    05:15 - Outro
    ___________________________________________________________________________
    Unreal Engine 4 Tutorials Playlist: • Unreal Engine 4 Tutorials
    Blender Tutorials Playlist: • Blender Tutorials
    ___________________________________________________________________________
    If you enjoy make sure to subscribe: / @mattaspland
    Join My Discord Server: / discord
    Follow Me On Instagram: / matt_aspland_
    ___________________________________________________________________________
    If you want to support me, you can PayPal me at "matt.aspland.1@gmail.com". This is by no means expected or required. It is just a nice support :)
    Link to PayPal: www.paypal.com/
    You can also support me on Ko-Fi following this link: ko-fi.com/mattaspland
    Thank you :) ___________________________________________________________________________
    ♫Music By♫
    ●Kronicle - Chill Noons
    ●Soundcloud - / the-chemist-10

КОМЕНТАРІ • 68

  • @jakeb4026
    @jakeb4026 Рік тому

    all your videos are helpful man good work!

  • @Goggalor1990
    @Goggalor1990 2 роки тому

    Awesome, thank you so much!

  • @DirtyPoopers
    @DirtyPoopers 3 роки тому +10

    I'm giving your channel credit when I finish my game!

    • @MattAspland
      @MattAspland  3 роки тому +1

      Thank you so much! I really appreciate that! :)

    • @milan.980
      @milan.980 3 роки тому +2

      I have given in my first, will give in second game too, no doubt

    • @redwolf831
      @redwolf831 2 роки тому

      Same

  • @user-sv3xj1jk6l
    @user-sv3xj1jk6l Рік тому +2

    Blueprint Runtime Error: "Accessed None trying to read property charecter_Ref". Node: Return Node Graph: GetPercent_0 Function: Get Percent 0 Blueprint: NewWidgetBlueprint

  • @JustZiReacts
    @JustZiReacts 3 роки тому

    Thanks so much for the tutorial❤

    • @MattAspland
      @MattAspland  3 роки тому +1

      No problem, happy to help :)

  • @DNIMTN
    @DNIMTN 3 роки тому +1

    this is excellent. i never realized I could just divide the integer by 100 to get the percentage for the progress bar. I've always used floats for health and stamina that went from 0 to 1
    thanks!

    • @MattAspland
      @MattAspland  3 роки тому +1

      Thank you, and yep, I find it to be a much easier way of doing things. Glad you learned a new helpful trick :)

    • @DNIMTN
      @DNIMTN 3 роки тому +1

      @@MattAspland Yes! Because now I can just set the health to something more normal like 100 or more

    • @MattAspland
      @MattAspland  3 роки тому +1

      Yeah definitely, much easier for you :)

    • @_just.a.player_
      @_just.a.player_ 2 роки тому

      Can anyone tell me how he brought the get strength integer in the blueprint menu please...I am using unreal engine 5..

  • @ipaneco777
    @ipaneco777 3 роки тому

    that was really helpful thanks :)

  • @slymncag
    @slymncag 3 роки тому +1

    You Are The BEST

    • @MattAspland
      @MattAspland  3 роки тому

      Very high praise! It's my pleasure to help out! :D

  • @paca2058
    @paca2058 3 роки тому

    You saved my life.

  • @CommanderColson
    @CommanderColson 3 роки тому +1

    Could you do a video on making a progress bar when interacting with an object? Like 'hold E to build barrier' and then there is a progress bar that visualizes the 2-3 seconds you have to hold E to build said barrier. I can't find a tutorial for something like that anywhere!

    • @MattAspland
      @MattAspland  3 роки тому +2

      Yeah that's a great idea! I can look into that :)

  • @cyphermur9t
    @cyphermur9t 2 роки тому

    I followed everything from last vid and this vid, except instead of stamina it was for activating time dilation. Everything works fine except for stopping the time dilation. The progress bar drains down to 0 anyways.

  • @RealFireballStudios
    @RealFireballStudios Рік тому

    So there any way to make the widget get removed when you have max stamina?

  • @SamuelGarcia-nn8hf
    @SamuelGarcia-nn8hf 3 роки тому +1

    just a YEAR late but for me it's different the return node is not green it's blue is there another way i can do this

  • @michaelysmaelfernandez4444
    @michaelysmaelfernandez4444 3 роки тому

    YOU SAVE MY LIFEEEE!!

  • @alexeinuville2555
    @alexeinuville2555 2 роки тому

    Tried this but didn't work, only showed me the full stamina bar when it reached 100 but as soon as I sprint it dropped to 0. It should work ok without issues like you showed in the video, but I had to change my Stamina to Float in the Character blueprint instead of using a Convert Integer to Float node in the HUD gadget blueprint. I think it might be something with the version of UE..? I'm using 4.27 otherwise great tutorials man! I'm learning a lot!!

  • @ExplodingJellyfish
    @ExplodingJellyfish 2 роки тому

    I am curious, is there a way to make the bar move smoothly, even though the bar is progressing in chunks like that? Sometimes in indie games I'll see like a 10th of the stamina bar or battery bar drop, but it smoothly slides to the right place on the progress bar, if that makes any sense.

    • @krosshatch
      @krosshatch 2 роки тому

      I think if you use floats instead of integers this will solve it, it wont change alot as they are the same thing but integers use decimals and not whole numbers. I may not be correct here tho

  • @bryceshinn3821
    @bryceshinn3821 3 роки тому +5

    How did you make that "target stamina".

    • @pgei3649
      @pgei3649 3 роки тому

      I think it was done in his previous videos in this series

  • @theluckyclain2735
    @theluckyclain2735 2 роки тому +3

    I followed the steps from the first video and this one, and on minutes 2:57, we have to "Get Stamina" but I cant find Stamina when I type in "Get Stamina"

  • @GiMiat
    @GiMiat 2 роки тому

    Hey I didnt understand at which point you are calling the Get Percent function? Did i miss somthing? --Sorry was too fast to complain, I found it , its because its created out of the Binding Button on the details of the progress bar

  • @redwolf831
    @redwolf831 2 роки тому

    When I run my bar does not drain I have a print string so I know it’s draining but the bar is not moving

  • @_just.a.player_
    @_just.a.player_ 2 роки тому +1

    Can anyone tell me how he brought the get strength integer in the blueprint menu please...I am using unreal engine 5..

    • @bl1zz4rd.
      @bl1zz4rd. Рік тому

      some things dont work in ue5 because its basically a different engine entirely

  • @GaryParkin
    @GaryParkin 2 роки тому

    Ok, this was cool, but why did you use the Level Blueprint instead of the player character? I'm confused. No one explains the level blueprint or the GameMode or GameStates, and why you'd want to use them and how.

  • @redwolf831
    @redwolf831 2 роки тому

    How can you make the bar disappear when it gets full

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

    Please make a tutorial
    How to make a loading screen with loading bar?

  • @a3lurus
    @a3lurus 2 роки тому

    How do I do this on First Person?

  • @teukuaulia4270
    @teukuaulia4270 3 роки тому +4

    im lost when u suddenly put get stamina variable

  • @akungamegamer84
    @akungamegamer84 Рік тому

    hi matt here is ur subscriber can i request for toturial how to make character walk on tight places in unreal? i'm so glad if u want to make it!

  • @sakibrahaman6941
    @sakibrahaman6941 3 роки тому +1

    Please make a tutorial on shop system!! (with save game & Inventory)

    • @MattAspland
      @MattAspland  3 роки тому +1

      I could definitely look into that :)

    • @sakibrahaman6941
      @sakibrahaman6941 3 роки тому +2

      @@MattAspland Thanks broo😍🤩🤩

    • @MattAspland
      @MattAspland  3 роки тому +1

      no problem :)

    • @sakibrahaman6941
      @sakibrahaman6941 3 роки тому +2

      Are you don't want to make that?
      I'm Waiting For Your Video ☺️

    • @MattAspland
      @MattAspland  3 роки тому

      Hi, I'm very bust sorry, I plan on doing that at some point yeah, sorry if there is a delay on it :)

  • @shauryasingh6207
    @shauryasingh6207 3 роки тому +2

    Not first this time :(

    • @MattAspland
      @MattAspland  3 роки тому +1

      Still within 10 minutes though so you're quick, thank you for supporting :)

  • @Humor.Hustle
    @Humor.Hustle 3 роки тому +2

    How did you get stamina

    • @MattAspland
      @MattAspland  3 роки тому +1

      Like I said at the start of the video. I made it in a previous tutorial. I'll link it below.
      Sprinting And Stamina: ua-cam.com/video/cUAvmje9Pyg/v-deo.html

    • @Humor.Hustle
      @Humor.Hustle 3 роки тому +1

      @@MattAspland I got it thankkss

    • @MattAspland
      @MattAspland  3 роки тому

      That's great!

  • @resset3841
    @resset3841 3 роки тому +1

    You know maybe what to do to see the stamina bar on many levels?

    • @MattAspland
      @MattAspland  3 роки тому

      If you create the widget in the player blueprint or game mode blueprint instead of the level blueprint, this should work for you.

    • @resset3841
      @resset3841 3 роки тому +1

      @@MattAspland yes this work but
      let's take situations where I have 40% battery or stamina and im load next lvl and I have max again and I would like to have 40% (sry for bad english)

    • @MattAspland
      @MattAspland  3 роки тому

      @@resset3841 It should still save these variables when changing levels. Does it not do this for you?

    • @resset3841
      @resset3841 3 роки тому

      @@MattAspland
      unfortunately it does not save changes when changing levels

  • @RolandoPeralta3DGraphics
    @RolandoPeralta3DGraphics 2 роки тому

    I followed everything on last video and this one, and my stamina bar doesn't move... at all...

    • @narrgamedesigner2747
      @narrgamedesigner2747 2 роки тому

      Did you ever manage to fix this as Mine does not work at all.

    • @RolandoPeralta3DGraphics
      @RolandoPeralta3DGraphics 2 роки тому

      ​@@narrgamedesigner2747 Yes I did, the way I fixe it was that by mistake I Clicked on Create under Appearance instead of Progress, if you want your stamina bar to work you must ckick create under progress