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 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-BpTKS5-9KnE.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!
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!
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.
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.
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.
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?
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.
There are tons of such healthbar instructions in RU-vid and everyone do this ugly looking healthbar, which has same size at any distance to character...
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, RU-vid 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