So some people have questioned if you need to follow the Git Repository video to advance in the series, and the answer is NO! It is completely optional, it's just to have more control over the project for the ones that want to maybe work in a team or want to have many backups etc.
Thanks gorka game I am very happy and I can't explain how happy I am that you respond my comment thanks that you are fulfilling my request Thnks 😊😊😊😊😊😊👍😊😊🙏😊
hey i've been watching nearly all ur unreal engine tutorials and wanted to say you're a saint and I want to thank you for providing these tutorials to us for free, especially to students and just casual learners, these tutorials helped me make so much progress in my RPG as a beginner and the future is bright thanks to you! thanks a lot gorka, keep making videos cus they help SO MANY people
31:45 This part didn't actually work, even on your screen. The Stamina bar still started at 70 (the value you set in the component on the ThirdPersonCharacter). You only changed the default value of the component, which was overriden. This actually masked for you a slightly bigger issue that I ran into. Setting the Initial Percent & Text on the 'Begin Play' of BPC_PlayerStats doesn't work, and will give you an error, because it is running it simultaneously with the 'Begin Play' of the ThirdPersonCharacter -- meaning, you can't get the 'HUD Widget' because it hasn't been created yet. You could put any amount of delay in the BPC_PlayerStats to get it to work, but a cleaner solution is to use a custom event. Simply create a custom event in BPC_PlayerStats setting the percent and the text, and call that event off the 'Begin Play' of the ThirdPersonCharacter. Hope this helps someone!
Out of subject but i have a question about decrease health function. When i try to start decreasing health it just goes for -60 for no reason and this is happening on my first click. Why do you think this happens?
@@canylmaz9730 Hello Canlymaz. My initial thought would be to check the value of your decrease health function & your current health. Is your current health - the damage equal to -60? It could be something simple like the values you've chosen without realizing it.
SOLUTION TO HEALTHBAR MISSING AT 22:35: When you Create a virable at 20:20 make sure it is the "WB_HUD" right to the name creation in the bottum leftcorner. I Myself experienced it called "Widget user HUD" or something like that then i created another variable on top of the wrong variable, this time it was called "WB_HUD" as it is in the video, i deleted the old variable and tried searching for the "Get Health Bar" as in 22:35. and it worked. Pin this, alot of comments missing this info. Just like me. :)
there are a few things to do better in this episode. first use the clamp (float) node, which makes dealing with min/max values much easier. Second: use the Create Binding buttons in the widget designer to auto assign Player values to textboxex/buttons/progressbars etc. Other than that, a very useful rescource for beginners!!
Hey you're videos are really helpful, thanks for making these! I really appreciate how quickly you get into practical things. One thing I wanted to point out though, you can simplify the add/subtract logic quite a bit if you use "Clamp" to keep the values in range. Also, it really helps to collapse all the HUD update logic into one function, and just call that, rather than copy-paste between different blueprints.
I feel like all of the player stats could be placed into a struct. Would make things a bit more clean. Also, for things like returning if the health or stamina is empty, you don't have to make a branch and then set the return values, just directly return the boolean value. Other than that, great tutorial.
Same. I also just clamped the values to max values before setting them, so as to avoid the same kind of branching call that was also made for the boolean returns.
Thank you for the effort you put in these videos, they help out a lot! But man your upload rate is insane, don't forget to also take some time for yourself and chill haha. We can wait bro :D
Solution to health/stamina bar exceeding limits: Just wanted to post a comment here saying his max health/stamina limiter doesn't work, instead find the "clamp (float)" function in unreal and that will prevent your current health from going beyond your maximum health (same with stamina). I just wanted to say though without his tutorials I would have never got my game as far as I did so an obligatory thank you to Gorka, these videos are priceless information that let poor bastards like myself make something worthwhile. So again thank you! P.S. I don't know if he fixes this issue in future videos yet, so forgive me if he talks about this in future demonstrations.
Thanks for the help my guy. I love the little jokes and laughs, cracks me up too. I have a spanish co-worker and hearing you talk really reminds me of him, great guy!
Very Good Tutorial, quite possibly one of the best so far. I created Function's to update the hud, instead of copy pasting the same logic in three places for Health and Stamina, I have an Update Hud function for both, that divides current and Max, updates the progress bar and text, I then add the Update Hud function to the health and stamina functions instead of copy pasting the same logic.
Hey man, sorry to bother but I really want to learn how you did this update HUD function. sounds way more efficient. please let me know when you get time.
You're awesome man! Thank you so much for the tutorials. You're doing great! Honestly really helpful, I'm studying a diploma in game design and your tutorials have helped me so much. Love your videos, keep it up!
Thank you very much for your work, you are amazing teacher! You explain very clearly and learning with you is a pleasure! Special thanks for the fact that you regularly add videos and we do not have to wait a long time for new episodes, this is worthy of respect!) We love you so much, please keep going!)❤
Hi Gorka! Thank you for your tutorial and it helps a lot! Just for heads up If you already set the WB_HUD as the right variable as other comments said but still cannot find Get health & stamina Bar, you can try this: 1. Open the Widget BP WB_HUD and switch to Designer's Panel, it's on the upper right. 2. Then Click the health & stamina bar in the canvas,. 3. you will see there is a check box says " Is Variable " , it is on the upperest of the details panel, just enable it. Problem solved, have a try!👏
I am very impressed with all the good content you are putting out. I am learning a lot as I go. I look forward to watching all your other videos. I did notice a way to reduce some coding. Like you have the blueprint equivalent of "if (a) return true else return false". This can be simplified to "return a". Just throw away the if branch and return the boolean directly. Someone else already mentioned the clamp to keep a value inside a min/max. I just used the min function instead, but I think clamp may be better or a check to make sure health increase is always positive. Or have a function that just takes in a delta health and deals with positive/negative values.
You did an amazing job with these tutorials. Very clear, easy to follow. I'm learning super fast ! Thanks !!! It hurt a little bit that you have multiple place with the same code to update the progress bar instead of calling a function but it's okay :D
You should use the collapsed node function more often. Especially when you have a lot of blueprints. Helps to break it down more and you can organise your blueprints more.
hey man nice work these rpg tutorials are so much helpfull and in a future will you make a kill cam machenics were it shows the replay how to got kill will be great ^-^
you could also clamp float instead of the branching double setting of a variable (better on hardware for how a computer thinks) i made 2 functions to handle to updating of the healthbar/text and the other staminabar/text, and had them called inside of the other functions. After begin play on the character i called the update functions so that no matter what your stats are when the character loads, the ui will match
Having similar issue. Ive followed the tutorial to the letter and now when i attempt to decrease my health bar to lead to character death my debug button litterally kills character without the bar moving! did you resolve this issue?
You created a loop de loop in your code. The character reaches into the component for a calculation, then the component reaches into the character to reach into the widget to set the percent. You would need to have your functions in the component return the values, and then have the player character then send the returned info into the hud, instead of the component send to the hud. Player character reaches into the component for a calculation, hands the premade values to the widget. Eliminate the middle man codes. I also used pure functions to calculate the health and stamina percentages.
I Love Gorka, but damn is he Spanish! At around 21:00 when your debugging the bars, WATCH VERY CAREFULLY Gorka switchs Get/Set and Health/Stamina mixed up alot. It all works but he may of said the wrong thing if your following along exactly. Just go back and double check your blueprints to his. Mine wasnt working but got fixed after I re complied the Max Health BP. Gorka is awesome! Cant wait to see his AAA title come out!
Thanks a lot for the effort, thinking that this is free is amazing. However, I had a lot of difficulties following you in this episode for the first time, especially with lack of explaining why you do certain things that way, like why did we divide currents with maxes? Again, thanks a lot!
someone please help me. i have tried everything but the get percent or whatever it is called is not working, i always get a error that states "accessed none trying to read property HUD Widget". Node: set percent graph: increase health function: increase health blueprint: BPC_playerstat. please help
Late, but I figured it was not creating the widget yet...Add a delay of node of .2 after the set before you add the stamina and health setpercent blocks. Worked fo rme
I had the same problem with the "Set percent" in Decrease Stamina. It seems that it tried to target something that has no value. After investigation I saw that the "in percent" had a divider that divided "Current stamina" by "Max Health". Ofcourse those 2 are not connected so the max health had no value and caused me the error. Maybe something simular is going on with your problem?
Dude I have a massive problem right now. I don't know what but I screwed something big time and I don't know why. Basically instead of a health bar, I wanted it to be like an overlay, you know like in the COD games when you're low on health there's a red overlay on screen. I didn't want my players to see any numbers so I skipped all the text related stuff in the WB_HUD so originally my graphs looked exactly like yours before you added the health percentage texts. My exact thought process was "This should be easy, the same graph but with a few modifications to the health related stuffs". So I replaced the health bar in the WB_HUD with an image I prepared and called it "damage overlay", and basically for all the health related graphs, I switched out the "health bar" under the "Player Character BP">"HUDWidget">"health bar" nodes with a "damage overlay" and connected it up with a with "set opacity" instead of a "set percent". Another thing I did was to add in a subtraction "1-input" after the division because I wanted the opacity to be 0 at full health, and 1 and zero, but it's essentially the same graph. I added a debug key 2 for "decrease health" in addition to the 1 for "increase health" and tested it out. Well taking damage seemed fine, the damage overlay appeared when I took damage, but now it won't disappear when I try to add health. Also when I stop the game there are a multitude of "blueprint runtime error" appearing seemingly telling me that in BPC_PlayerStats there is an "Accessed None is trying to read property HUDWidget" after the begin play. What does that mean? No idea. I have no clue, what's going on please help. Other than that, love your tutorials.
I think you could get a reference to the player by making an exposed object variable of the player character in the widget and passing a self reference during the widget creation
SOLUTION TO HEALTHBAR MISSING AT 22:35: When you Create a virable at 20:20 make sure it is the "WB_HUD" right to the name creation in the bottum leftcorner. I Myself experienced it called "Widget user HUD" or something like that then i created another variable on top of the wrong variable i got the first time, that one was the called "WB_HUD" as it is in the video, i deleted the old variable and tried searching for the "Get Health Bar" as in 22:35.
Thank you for the videos. I have some software development experience in C#/Java and wanted to ask a question related to methods.(repeatable code chunks) is there a reason why you are adding the “update heath bar number” in multiple places vs adding a new function and calling the new function in your increase health, increase max health, etc?
Can someone please help. I have a problem where whenever I click the debug button to decrease my health the progress bar is automatically filled but the health text bar still depletes in 10 from 100 to 90 exc. So basically the progress bar doesn’t show that the health is depleting and instead stays full until it hits 0. Can someone please help?
@@GorkaGames hey idk if it's much to ask but is there a way to make a character aim go stupid when it tired? or cold / low stamina idk if that's possible would be cool to see a video like that too, but I know im asking for a lot tho. Thanks for the content tho its super helpful
I would really like another swimming tutorial with better features like snapping to water surface and being able to jump in the water and straight away start swimming instead of hitting the sea bed stuff like that. Hopefully you read this and hopefully you cover it in this series. I have tried contacting you through your discord to no prevail sadly but im really hoping that my wishes come true
Hey @GorkaGames When I debug my health functions, I get an error... "Blueprint Runtime Error: Accessed None trying to read property Player Character" Any ideas?? Amazing tutorial thank you!
Thanks for Tutorials, i´m following them! it just.. maybe can you help me to sovle issues on my side? For Health Bar, i have done all sets. But it didn´t appear in my Viewport, even with your former tutorial. Except that, the action assasination couldn´t aimed at Dummy, it aimed at the air aroud Dummy. Last...not every times The jump works well, sometimes jumps sometimes runs in the air. i know, there are many issues. I find not solution for that, so turn to you.
when i use increase stamina or increase health it doesnt work. it only affects things when its decrease sttraight up nothing happens other wise with stamina but with health it will just fill all the way up and yes i did set it to 70 on current health default>????????
Great vid needed it but gotta ask you something can you make next video about an advanced blueprint tutorial cause i am at a point where I can't wait any longer or a more advanced ai than any ai you have shown to us or how to make a nuke using line traces and if none of them will be the next video what will it be an inventory system or what
hey ro love this course so far. one question i have is that are you gonna implement swimming in this course? if you arent please do, Even if its a simple mechanic
weird question, but i saw a tutorial previously that suggested instead of having an increase and decrease functions, to only have an increase function but use negative numbers when adding the values. i know this makes the code cleaner and has less functions, but would this pose any problems later in any way?
Hey so I have a question, can I combine Increase and decrease functions into one and call it Increase/decrease function and put all the values as positive or negative so i can increase for positive values passed and decrease for negative values passed. Is it gonna make my game slower or is there any negative effects ?
I see your video when of your health but it's incomplete because you didn't teach that what happen when player health is empty so please teach when health is empty player kill and respawn
So a problem is there is no option to “cast to third person character” when invoking the functionality of the UI. Only options for game mode and game mode class.
Hey brother, I watch your channel to learn about Unreal Engine. But I don't make video games, I make short films. I was wondering, is there any chance in the future you could do a few videos on making cutscenes for video games? Because all video games have some sort of cinematic element to them, so it would help your video game audience as well.
@@GorkaGames thank you my friend, I know the basics of sequencer. But when it comes to things like making characters faces move correctly alongside body animations, or adding special effects that look accurate, or explosions, etc its all designed for video games. So not much information on the cinematic side in Unreal for film stuff.
27:15 uhhh... my health dropped straight to zero. even with damage set to 1. (Edit:Fixed) ahh geez... the way i have my nodes positioned. i had the "damage" and "current health" going into the subtract node switched around. leaving this up incase anyone else needs this fix.
So some people have questioned if you need to follow the Git Repository video to advance in the series, and the answer is NO! It is completely optional, it's just to have more control over the project for the ones that want to maybe work in a team or want to have many backups etc.
Are you going to put animals in a game. Please do it ❤
@@keizerderood6873 yes!
Bro can you teach how to die when our health is empty
@@muneebhero1159 in some moments episode is out!
Thanks gorka game I am very happy and I can't explain how happy I am that you respond my comment thanks that you are fulfilling my request
Thnks 😊😊😊😊😊😊👍😊😊🙏😊
hey i've been watching nearly all ur unreal engine tutorials and wanted to say you're a saint and I want to thank you for providing these tutorials to us for free, especially to students and just casual learners, these tutorials helped me make so much progress in my RPG as a beginner and the future is bright thanks to you! thanks a lot gorka, keep making videos cus they help SO MANY people
True
thank you soo much!!! I really appreciate it and I'm glad that you find them useful!
31:45 This part didn't actually work, even on your screen. The Stamina bar still started at 70 (the value you set in the component on the ThirdPersonCharacter). You only changed the default value of the component, which was overriden.
This actually masked for you a slightly bigger issue that I ran into. Setting the Initial Percent & Text on the 'Begin Play' of BPC_PlayerStats doesn't work, and will give you an error, because it is running it simultaneously with the 'Begin Play' of the ThirdPersonCharacter -- meaning, you can't get the 'HUD Widget' because it hasn't been created yet. You could put any amount of delay in the BPC_PlayerStats to get it to work, but a cleaner solution is to use a custom event.
Simply create a custom event in BPC_PlayerStats setting the percent and the text, and call that event off the 'Begin Play' of the ThirdPersonCharacter. Hope this helps someone!
Out of subject but i have a question about decrease health function. When i try to start decreasing health it just goes for -60 for no reason and this is happening on my first click. Why do you think this happens?
@@canylmaz9730 Hello Canlymaz. My initial thought would be to check the value of your decrease health function & your current health. Is your current health - the damage equal to -60? It could be something simple like the values you've chosen without realizing it.
It helped me just when I was looking for a solution. Thanks man!
Thank you so much!
Thank you for this !!!
SOLUTION TO HEALTHBAR MISSING AT 22:35: When you Create a virable at 20:20 make sure it is the "WB_HUD" right to the name creation in the bottum leftcorner. I Myself experienced it called "Widget user HUD" or something like that then i created another variable on top of the wrong variable, this time it was called "WB_HUD" as it is in the video, i deleted the old variable and tried searching for the "Get Health Bar" as in 22:35. and it worked.
Pin this, alot of comments missing this info. Just like me. :)
Thanks 🤗
Not all heroes wear capes, just saved my @ss🍻🍻
I can’t even connect player character bp to the hud widget, the healthbar doesn’t come up in the blue print at all either.
This worked
Thanks
Works fine. alot of blueprint action here. so pay attention or you will have to click back alot. it does in fact work!
there are a few things to do better in this episode. first use the clamp (float) node, which makes dealing with min/max values much easier. Second: use the Create Binding buttons in the widget designer to auto assign Player values to textboxex/buttons/progressbars etc. Other than that, a very useful rescource for beginners!!
Hey you're videos are really helpful, thanks for making these! I really appreciate how quickly you get into practical things. One thing I wanted to point out though, you can simplify the add/subtract logic quite a bit if you use "Clamp" to keep the values in range. Also, it really helps to collapse all the HUD update logic into one function, and just call that, rather than copy-paste between different blueprints.
when i watch your videos thats the only time anything actually ever makes sense, i love this series so much and can't wait for the quest one!!
Seems like "Basicly" is your favorite word)) Thanks, great lesson)
Love the way you organize your content. It’s easy to understsand
I love all these longer vids! You can pack in so much.
glad to hear that!
Love this series so much plus he is very clear in his directions
😄😄
I feel like all of the player stats could be placed into a struct. Would make things a bit more clean. Also, for things like returning if the health or stamina is empty, you don't have to make a branch and then set the return values, just directly return the boolean value. Other than that, great tutorial.
Same. I also just clamped the values to max values before setting them, so as to avoid the same kind of branching call that was also made for the boolean returns.
Thank you for the effort you put in these videos, they help out a lot! But man your upload rate is insane, don't forget to also take some time for yourself and chill haha. We can wait bro :D
hahaha thank you so much!! yeah no worries! right now i am on my last days of vacation so I am taking advantage of it!
@@GorkaGames Awesome, enjoy these last days then! 😁
Man this series is 🔥
thanks!!
Solution to health/stamina bar exceeding limits:
Just wanted to post a comment here saying his max health/stamina limiter doesn't work, instead find the "clamp (float)" function in unreal and that will prevent your current health from going beyond your maximum health (same with stamina).
I just wanted to say though without his tutorials I would have never got my game as far as I did so an obligatory thank you to Gorka, these videos are priceless information that let poor bastards like myself make something worthwhile.
So again thank you!
P.S. I don't know if he fixes this issue in future videos yet, so forgive me if he talks about this in future demonstrations.
Thanks for the help my guy. I love the little jokes and laughs, cracks me up too. I have a spanish co-worker and hearing you talk really reminds me of him, great guy!
Very Good Tutorial, quite possibly one of the best so far. I created Function's to update the hud, instead of copy pasting the same logic in three places for Health and Stamina, I have an Update Hud function for both, that divides current and Max, updates the progress bar and text, I then add the Update Hud function to the health and stamina functions instead of copy pasting the same logic.
Yeah one function can handle all the stat ups and downs
Hey man, sorry to bother but I really want to learn how you did this update HUD function. sounds way more efficient. please let me know when you get time.
You're awesome man!
Thank you so much for the tutorials. You're doing great!
Honestly really helpful, I'm studying a diploma in game design and your tutorials have helped me so much.
Love your videos, keep it up!
Hi, thx for your Content. Only 1 thing at 9:17 min you made current health into decrease stamina funktion. But it works good!
is that suppose to be right? lol
thank you for making this RPG Series i really need it
my pleasure!
@@GorkaGames 🙂
@@GorkaGames also i subscribed
Thank you very much for your work, you are amazing teacher!
You explain very clearly and learning with you is a pleasure! Special thanks for the fact that you regularly add videos and we do not have to wait a long time for new episodes, this is worthy of respect!)
We love you so much, please keep going!)❤
Hi Gorka! Thank you for your tutorial and it helps a lot!
Just for heads up If you already set the WB_HUD as the right variable as other comments said but still cannot find Get health & stamina Bar, you can try this:
1. Open the Widget BP WB_HUD and switch to Designer's Panel, it's on the upper right.
2. Then Click the health & stamina bar in the canvas,.
3. you will see there is a check box says " Is Variable " , it is on the upperest of the details panel, just enable it.
Problem solved, have a try!👏
The problem is that, when you set the widget in the third person character you need to change the pin variable from USER WIDGET to WB HUD!
Thank you so much fr been following this series lately and it taught me lots of stuff thanks a lot for this hard work and helping people for FREE.
Thank you bro,
Another great vid with good explanation.
I'm so glad you cover the basic stuff that most tutorials skip.
I am very impressed with all the good content you are putting out. I am learning a lot as I go. I look forward to watching all your other videos. I did notice a way to reduce some coding. Like you have the blueprint equivalent of "if (a) return true else return false". This can be simplified to "return a". Just throw away the if branch and return the boolean directly. Someone else already mentioned the clamp to keep a value inside a min/max. I just used the min function instead, but I think clamp may be better or a check to make sure health increase is always positive. Or have a function that just takes in a delta health and deals with positive/negative values.
I think it would be a good option to combine the increase/decrease functions into one function using the "clamp" function.
Great Explanation
I think that extract the hud refresh could be a good point for improvement
great video :) porting my project to UE5 from UE 4 so decided to redo the hud this is very helpful.
You did an amazing job with these tutorials. Very clear, easy to follow. I'm learning super fast ! Thanks !!! It hurt a little bit that you have multiple place with the same code to update the progress bar instead of calling a function but it's okay :D
I use unreal engine 5 and I love your tutorial just realy help me to my project
This series is incredible. Thank you for all that you do!
This is great! Hope to see more of it soon!!!
😄😄
You should use the collapsed node function more often. Especially when you have a lot of blueprints. Helps to break it down more and you can organise your blueprints more.
this tutrial makes my project system so easy! this content is free i didnt trust! thx brooooooooo!
I love your videos ive been watching for a while i also love how organized you make everything XD
omg ur making rly long videos so much dedication
😄😄
That click click ding thing for the sub reminder has to be the worse thing ever to happen to RUclips...
Besides that, love this series. Thank you.
Thanks, bro. for this update. this is so exciting.
my pleasure!
13:22 instead of using a branch to ensure you don't exceed the max health, just use a clamp node.
hey man nice work these rpg tutorials are so much helpfull and in a future will you make a kill cam machenics were it shows the replay how to got kill will be great ^-^
thanks! that is a very cool feature. Well see how the combat goes!
Great stuff! Thanks!
Hi, thanks for these sessions. But this is the first time I've seen code to increase Max Health & Max Stamina!
Nick
Really love this episode thanks for your help
you could also clamp float instead of the branching double setting of a variable (better on hardware for how a computer thinks)
i made 2 functions to handle to updating of the healthbar/text and the other staminabar/text, and had them called inside of the other functions. After begin play on the character i called the update functions so that no matter what your stats are when the character loads, the ui will match
I need this tutorial! You fantastic person
thank you!
I have a final question about your roadmap on rpg series. Will you add bow attacks in your char in the combat system?
yes!
Hi Gorka! I want to ask. Your video Setup an Unreal Engine 5 Project Git Reposity need required work in process “RPG tutorial series”?
Gorkaaaaaa, I want a answer please 🙏.
no no it is not required!! it is completely optional!!
At 25:40, this didn't work for me. The bar wasn't increasing at all and I'm not sure why. Any suggestions?
did you find a fix for it?
Having similar issue. Ive followed the tutorial to the letter and now when i attempt to decrease my health bar to lead to character death my debug button litterally kills character without the bar moving! did you resolve this issue?
You created a loop de loop in your code. The character reaches into the component for a calculation, then the component reaches into the character to reach into the widget to set the percent.
You would need to have your functions in the component return the values, and then have the player character then send the returned info into the hud, instead of the component send to the hud. Player character reaches into the component for a calculation, hands the premade values to the widget. Eliminate the middle man codes. I also used pure functions to calculate the health and stamina percentages.
i try to understand how u did it but i can't get it...mind blowing
I Love Gorka, but damn is he Spanish! At around 21:00 when your debugging the bars, WATCH VERY CAREFULLY Gorka switchs Get/Set and Health/Stamina mixed up alot. It all works but he may of said the wrong thing if your following along exactly. Just go back and double check your blueprints to his. Mine wasnt working but got fixed after I re complied the Max Health BP. Gorka is awesome! Cant wait to see his AAA title come out!
5to Cap Finalizado !!! Sin problemas !!! Muchas gracias !!!! !!!!
You could just use *clamp* and not branches in the increase stamina and increase health.
thanks for the recomendation, you are totally right! I will experiment with it
Thanks a lot for the effort, thinking that this is free is amazing. However, I had a lot of difficulties following you in this episode for the first time, especially with lack of explaining why you do certain things that way, like why did we divide currents with maxes? Again, thanks a lot!
Thank you so much gorka
my pleasure!
Video is and explanation is Nice😀
Next Enemy AI .....
Amazing like always!!!!
thanks!!
Can you please do a tutorial about crafting menu
Is there away to smooth the health bar like the stamina bar
someone please help me. i have tried everything but the get percent or whatever it is called is not working, i always get a error that states "accessed none trying to read property HUD Widget". Node: set percent graph: increase health function: increase health blueprint: BPC_playerstat. please help
I have that problem too, have you figured out how to fix it yet?
Have the same issue but in the Event Graph instead... all my functions are ok! Please Help!!!
Late, but I figured it was not creating the widget yet...Add a delay of node of .2 after the set before you add the stamina and health setpercent blocks. Worked fo rme
I had the same problem with the "Set percent" in Decrease Stamina. It seems that it tried to target something that has no value. After investigation I saw that the "in percent" had a divider that divided "Current stamina" by "Max Health". Ofcourse those 2 are not connected so the max health had no value and caused me the error. Maybe something simular is going on with your problem?
@@NotsoEP Yes. Anytime you cast, you need a .2 sec delay.
Dope vid bro thank you, quick question why does the stamina first decrease then increase when pressing the 1 key?
Suuuuuuper vid!
Is there planned that the progress bar is get down and fill up more smoothly?
Great video!! 💪🏻
thank you!
Dude I have a massive problem right now. I don't know what but I screwed something big time and I don't know why.
Basically instead of a health bar, I wanted it to be like an overlay, you know like in the COD games when you're low on health there's a red overlay on screen. I didn't want my players to see any numbers so I skipped all the text related stuff in the WB_HUD so originally my graphs looked exactly like yours before you added the health percentage texts. My exact thought process was "This should be easy, the same graph but with a few modifications to the health related stuffs".
So I replaced the health bar in the WB_HUD with an image I prepared and called it "damage overlay", and basically for all the health related graphs, I switched out the "health bar" under the "Player Character BP">"HUDWidget">"health bar" nodes with a "damage overlay" and connected it up with a with "set opacity" instead of a "set percent". Another thing I did was to add in a subtraction "1-input" after the division because I wanted the opacity to be 0 at full health, and 1 and zero, but it's essentially the same graph.
I added a debug key 2 for "decrease health" in addition to the 1 for "increase health" and tested it out. Well taking damage seemed fine, the damage overlay appeared when I took damage, but now it won't disappear when I try to add health. Also when I stop the game there are a multitude of "blueprint runtime error" appearing seemingly telling me that in BPC_PlayerStats there is an "Accessed None is trying to read property HUDWidget" after the begin play.
What does that mean? No idea. I have no clue, what's going on please help. Other than that, love your tutorials.
I think you could get a reference to the player by making an exposed object variable of the player character in the widget and passing a self reference during the widget creation
For some reason when i want to "get the healthbar" like you did at 22:39 i only can cast the Wb_healthbar. Its also set as an viriable. Some idea?
@Behobey I am having this problem too what do you mean check the character blueprint ?
You solved the Problem?
SOLUTION TO HEALTHBAR MISSING AT 22:35: When you Create a virable at 20:20 make sure it is the "WB_HUD" right to the name creation in the bottum leftcorner. I Myself experienced it called "Widget user HUD" or something like that then i created another variable on top of the wrong variable i got the first time, that one was the called "WB_HUD" as it is in the video, i deleted the old variable and tried searching for the "Get Health Bar" as in 22:35.
Thank you for the videos. I have some software development experience in C#/Java and wanted to ask a question related to methods.(repeatable code chunks) is there a reason why you are adding the “update heath bar number” in multiple places vs adding a new function and calling the new function in your increase health, increase max health, etc?
ty good video. easy to follow and it works.
Can someone please help. I have a problem where whenever I click the debug button to decrease my health the progress bar is automatically filled but the health text bar still depletes in 10 from 100 to 90 exc. So basically the progress bar doesn’t show that the health is depleting and instead stays full until it hits 0. Can someone please help?
Thank you , you’re awesome keep it up
thanks!!
@@GorkaGames hey idk if it's much to ask but is there a way to make a character aim go stupid when it tired? or cold / low stamina idk if that's possible would be cool to see a video like that too, but I know im asking for a lot tho. Thanks for the content tho its super helpful
I would really like another swimming tutorial with better features like snapping to water surface and being able to jump in the water and straight away start swimming instead of hitting the sea bed stuff like that. Hopefully you read this and hopefully you cover it in this series. I have tried contacting you through your discord to no prevail sadly but im really hoping that my wishes come true
absolutely! this rpg series will cover a swimming system too
@GorkaGames thats brilliant will it cover the features i mentioned instead of a copy of your other swimming tutorial?
Hey @GorkaGames
When I debug my health functions, I get an error... "Blueprint Runtime Error: Accessed None trying to read property Player Character"
Any ideas?? Amazing tutorial thank you!
Thanks for Tutorials, i´m following them! it just.. maybe can you help me to sovle issues on my side? For Health Bar, i have done all sets. But it didn´t appear in my Viewport, even with your former tutorial. Except that, the action assasination couldn´t aimed at Dummy, it aimed at the air aroud Dummy. Last...not every times The jump works well, sometimes jumps sometimes runs in the air. i know, there are many issues. I find not solution for that, so turn to you.
When the final step comes in, I got an access none error for every element HUDwiget related.
lol if I add a 0 delay after setting the player casting variable, it doesnt throw the error anymore
Can I follow your tuts without any problems if I have implemented a lyra player character in the third person clean project?
Odpowiedz
yes!
Is it possible for you to please add like a character customisation system tutorial? Rpg style.
when i use increase stamina or increase health it doesnt work. it only affects things when its decrease sttraight up nothing happens other wise with stamina but with health it will just fill all the way up and yes i did set it to 70 on current health default>????????
Can you make an Episode at the end, making the Design for the UIs? I have no idea how to design UIs in UE
yes very soon we will aply some cool ui design into these
@@GorkaGames You’re a lifesaver 💎🔥
@GorkaGames you can also set the default color of your comments to the color you prefer
Great vid needed it but gotta ask you something can you make next video about an advanced blueprint tutorial cause i am at a point where I can't wait any longer or a more advanced ai than any ai you have shown to us or
how to make a nuke using line traces and if none of them will be the next video what will it be an inventory system or what
the advanced inventory system will come right after the begin with the man mechanics of the combat system, so very soon you will get an advanced one!
hey ro love this course so far. one question i have is that are you gonna implement swimming in this course? if you arent please do, Even if its a simple mechanic
man thank you so much
thx for your work !, but i can do it for multiplayer ? we need put in "Notity" ?
th for advance
Great that helped me a lot! but i dont understand why the stamina bar is not made with a timeline to make it look dynamic
yes!! in the future we will make it lerp
Thank you
can you make a tutorial bout segmented health bar.Basically you have multiple hp bars and if a bar isnt fully depleted it regenerates overtime
weird question, but i saw a tutorial previously that suggested instead of having an increase and decrease functions, to only have an increase function but use negative numbers when adding the values.
i know this makes the code cleaner and has less functions, but would this pose any problems later in any way?
Please do a video on how to make a car cinematic in UE5
Hey so I have a question, can I combine Increase and decrease functions into one and call it Increase/decrease function and put all the values as positive or negative so i can increase for positive values passed and decrease for negative values passed. Is it gonna make my game slower or is there any negative effects ?
I see your video when of your health but it's incomplete because you didn't teach that what happen when player health is empty so please teach when health is empty player kill and respawn
yeah the continuation is out!
So a problem is there is no option to “cast to third person character” when invoking the functionality of the UI. Only options for game mode and game mode class.
Thank you man, you are great! How can i position it in my character Capsule component?
Do a tutorial with how to multi task in ue5
👀
Can you make a lighter system like sons of the forest to where if you click a button it will have you hold a lighter and it will light up around you
yeah absolutely, now in this series we will probably use a torch. But for another video yeah man
Hey brother, I watch your channel to learn about Unreal Engine. But I don't make video games, I make short films. I was wondering, is there any chance in the future you could do a few videos on making cutscenes for video games? Because all video games have some sort of cinematic element to them, so it would help your video game audience as well.
absolutely! I think ithose videos would suit very well!
@@GorkaGames thank you my friend, I know the basics of sequencer. But when it comes to things like making characters faces move correctly alongside body animations, or adding special effects that look accurate, or explosions, etc its all designed for video games. So not much information on the cinematic side in Unreal for film stuff.
Nice what's next?? Combat??
27:15 uhhh... my health dropped straight to zero. even with damage set to 1.
(Edit:Fixed) ahh geez... the way i have my nodes positioned. i had the "damage" and "current health" going into the subtract node switched around.
leaving this up incase anyone else needs this fix.
Learn to use clamp. It's used to prevent a value going outside a min/max range.
Thanks man 😉