Hi developers! If you followed this tutorial and your health bar is not changing the problem is here 6:08 you need to add a percent node between the health variable and the return node like in this video th-cam.com/video/BpTKS5-9KnE/w-d-xo.html&ab_channel=MattAspland - (3:35) its because the health bar dont go from 100 to 0, it goes from 1 to 0 so you need a float value. This is not a critique i'm just trying to help others. Bye and good luck !
Dude thank you so much! I had been struggling for hours trying to figure out where I went wrong, I should have just looked at the comment section a lot sooner, haha!
Interesting that you have a BIND on the progress bar. Did you know that if you put a Print String on that binding function, you will be spammed with whatever is in the Print String? Every Tick. It updates that health bar every tick. You should use an Event Dispatcher in the UpdateHealth function so that it tells the widget to update the amount.
We're actually planning on making a second version of this which is more advanced functionality which is more streamlined. That being converting this existing system to be event based and hide when the player is a certain distance away.
Regarding anchors: You can choose an anchor and automatically move all selected items by holding ctrl+shift while clicking the anchor you want, saving you some eyeballing.
Nice clear tutorial. Except one change is suggested to note... to make this work Multiplayer. Instead of creating the Function to update your health, set your Pawn's Health variable to RepNotify. Then put all the same script in the RepNotify function created automatically. Then the enemy health bar will be replicated to other players. Thanks for everything here!
There are tons of such healthbar instructions in TH-cam and everyone do this ugly looking healthbar, which has same size at any distance to character...
Question, how would I be able to implement this onto the top of the FPS player's HUD instead of above the enemies head? For instance, a player shoots another player in multiplayer indicating that users ID name, health and any armor they may have on? Thanks.
Doesn't work, the variable doesn't display the health for the bar in the widget. edit: The reason it wasn't display is because you need to put 7.5 as opposed to 75 in the video. Fixed the display issue for me.
PLZ do a tutorial about the Health bar in the world space(and always face to the camera) rather than screen space because HP bar in screen space will display even it was blocked by other object and it's very weird in 3D Action game.
if i understand what you mean you can add a text to the widget saying the total number of health they have but in the graph the same way you do the progress basically, just add the text component and set the text to be the health...i think?
Do you know how to make a character stop for a moment when picking up an item, then the character plays an animation, then gets them to move again. I almost got it working.
When picking up the item set the player's max walk speed to 0 or something very low according to your need. Then play the animation and on animation end reset the player's max walk speed
@@EyeNeo It works, expect not quite the way expected. I was trying to go with a sort of Super Mario vibe, like how he gets a star or moon, with Mario's stood in place does an animation and moves again. I do like how I'm able to move now and my character isn't human.
@@MartKart8 You should be able to just use a root motion montage, no need for any extra coding. Movement will be disabled while montage is playing and return when it is finished.
@@augustforever7198 Thank you so much, this works exactly how I needed it to. Just went and made the animation slightly longer as it ended too quickly.
Hi, Im very new in here, and I really like the way you explain all these features in Ureal. For this video, I couldn't make the health bar running with the variable. I used "Print String - Variable" to check on the variable alternated, when the ThirdPersonPlayer touch the DummyTest, the variable of "Health" did decrease and also in the function which bond to the progress bar kept showing the changed variable which means function works fine. Also, when i change the value in the variable "Health", the health bar didn't change at all, it keeps on full till the value is 0, then the health bar became empty. I have went through this video and remade the project couple times, still got same issue. Is there anyone can help me? >_
Hey Yoyo, if you need help with this make sure to join our discord, there are channels for troubleshooting and I can walk you through a lot of your code on there
IIRC, TH-cam will upload the lowest res first when released and then do the others after. So the higher res are technically already uploaded you may just have to wait
Hi developers! If you followed this tutorial and your health bar is not changing the problem is here 6:08 you need to add a percent node between the health variable and the return node like in this video th-cam.com/video/BpTKS5-9KnE/w-d-xo.html&ab_channel=MattAspland - (3:35) its because the health bar dont go from 100 to 0, it goes from 1 to 0 so you need a float value. This is not a critique i'm just trying to help others. Bye and good luck !
Un-sung hero legit
Thank you for the amazing advice, I had already rewatched the video 4 time trying to see where I went wrong. Thank you.
@@kiritouzumaki6669 it's a pleasure to help ! :D
@prestonroman You are welcome :D !!
Dude thank you so much! I had been struggling for hours trying to figure out where I went wrong, I should have just looked at the comment section a lot sooner, haha!
Who else got bamboozled by the cool looking health bar in thumbnail?
Me bro
Interesting that you have a BIND on the progress bar. Did you know that if you put a Print String on that binding function, you will be spammed with whatever is in the Print String? Every Tick. It updates that health bar every tick. You should use an Event Dispatcher in the UpdateHealth function so that it tells the widget to update the amount.
either that or make it event based, where the damage event calls an event to update the health bar
We're actually planning on making a second version of this which is more advanced functionality which is more streamlined. That being converting this existing system to be event based and hide when the player is a certain distance away.
@@VirtusEdu im interested in that one
@@VirtusEdu It's been about 4 months. Do you have a timeline for when you are going to create the more advanced implementation?
Regarding anchors: You can choose an anchor and automatically move all selected items by holding ctrl+shift while clicking the anchor you want, saving you some eyeballing.
Nice clear tutorial. Except one change is suggested to note... to make this work Multiplayer. Instead of creating the Function to update your health, set your Pawn's Health variable to RepNotify. Then put all the same script in the RepNotify function created automatically. Then the enemy health bar will be replicated to other players. Thanks for everything here!
for anchoring things to where ever if you hold CTRL + Shift when you press the anchor option itll auto move the thing to that exact location
This is so clear. Thank you for the video, love it.
You're welcome bro
There are tons of such healthbar instructions in TH-cam and everyone do this ugly looking healthbar, which has same size at any distance to character...
Question, how would I be able to implement this onto the top of the FPS player's HUD instead of above the enemies head? For instance, a player shoots another player in multiplayer indicating that users ID name, health and any armor they may have on? Thanks.
The health bar is never occluded if you use screen space.
How can I toggle the visability of Health Bar on Canvas? Because I have two on my UI, above character and one I've made on canvas
Very good video. Good explaining. Thank you
Doesn't work, the variable doesn't display the health for the bar in the widget.
edit: The reason it wasn't display is because you need to put 7.5 as opposed to 75 in the video. Fixed the display issue for me.
The small things i REALLY like about UE, i dont even have the bind dropdown next to the percentage? wtf
Are you using health bars like this in your games? I want to know!
yaah but i used to your health bar from old video of your's
Yes
PLZ do a tutorial about the Health bar in the world space(and always face to the camera) rather than screen space because HP bar in screen space will display even it was blocked by other object and it's very weird in 3D Action game.
Yo man. Idk why but my healthbar is blurry af. how fix men
Thank you!
is there any way we can show the health bar numbers while we damage the enemy?
if i understand what you mean you can add a text to the widget saying the total number of health they have but in the graph the same way you do the progress basically, just add the text component and set the text to be the health...i think?
Does this widget updated every tick ?
Thank you for the video
No problem :)
would this replicate on mulitplayer?
Do you know how to make a character stop for a moment when picking up an item, then the character plays an animation, then gets them to move again. I almost got it working.
on press 'action' set movement speed 0. play animation ?
When picking up the item set the player's max walk speed to 0 or something very low according to your need. Then play the animation and on animation end reset the player's max walk speed
@@EyeNeo It works, expect not quite the way expected. I was trying to go with a sort of Super Mario vibe, like how he gets a star or moon, with Mario's stood in place does an animation and moves again.
I do like how I'm able to move now and my character isn't human.
@@MartKart8 You should be able to just use a root motion montage, no need for any extra coding. Movement will be disabled while montage is playing and return when it is finished.
@@augustforever7198 Thank you so much, this works exactly how I needed it to. Just went and made the animation slightly longer as it ended too quickly.
Hi, Im very new in here, and I really like the way you explain all these features in Ureal.
For this video, I couldn't make the health bar running with the variable.
I used "Print String - Variable" to check on the variable alternated, when the ThirdPersonPlayer touch the DummyTest, the variable of "Health" did decrease and also in the function which bond to the progress bar kept showing the changed variable which means function works fine.
Also, when i change the value in the variable "Health", the health bar didn't change at all, it keeps on full till the value is 0, then the health bar became empty.
I have went through this video and remade the project couple times, still got same issue.
Is there anyone can help me? >_
Should I do any code inside the Event Graph of the WB_HealthBar widget?
Hey Yoyo, if you need help with this make sure to join our discord, there are channels for troubleshooting and I can walk you through a lot of your code on there
@@VirtusEdu Thank You very much!!
I will try to join later! really appreciate it!
The quality of the video is 360p. Please re-upload with 4K or 1080p
IIRC, TH-cam will upload the lowest res first when released and then do the others after. So the higher res are technically already uploaded you may just have to wait
The video is in 4K resolution, enjoy!
bro next time use 10000000000000x100000000000000 monitor pls i cant see anything amk
keep the good work
Thank you, I'm glad that you enjoyed it!