Тёмный

How To Create Enemy Health Bars in Unreal Engine 5 

Virtus Learning Hub
Подписаться 238 тыс.
Просмотров 27 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 67   
@guillermo3dcode
@guillermo3dcode Год назад
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 !
@lapischu12
@lapischu12 Год назад
Un-sung hero legit
@kiritouzumaki6669
@kiritouzumaki6669 Год назад
Thank you for the amazing advice, I had already rewatched the video 4 time trying to see where I went wrong. Thank you.
@guillermo3dcode
@guillermo3dcode Год назад
@@kiritouzumaki6669 it's a pleasure to help ! :D
@guillermo3dcode
@guillermo3dcode Год назад
@prestonroman You are welcome :D !!
@julia22202
@julia22202 Год назад
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!
@Lyambh
@Lyambh Год назад
This is so clear. Thank you for the video, love it.
@VirtusEdu
@VirtusEdu Год назад
You're welcome bro
@kevinsmith3348
@kevinsmith3348 10 месяцев назад
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!
@helperpat
@helperpat 8 месяцев назад
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.
@DavidGWilliams1981
@DavidGWilliams1981 Год назад
Who else got bamboozled by the cool looking health bar in thumbnail?
@lordwolf2799
@lordwolf2799 Год назад
Me bro
@Dino_Gamer11
@Dino_Gamer11 4 дня назад
Me too
@Yggdrasil777
@Yggdrasil777 2 года назад
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.
@LOL1423derp92
@LOL1423derp92 2 года назад
either that or make it event based, where the damage event calls an event to update the health bar
@VirtusEdu
@VirtusEdu 2 года назад
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.
@Drakuba
@Drakuba Год назад
@@VirtusEdu im interested in that one
@AMobOGobos
@AMobOGobos Год назад
@@VirtusEdu It's been about 4 months. Do you have a timeline for when you are going to create the more advanced implementation?
@zeropalooba8646
@zeropalooba8646 Год назад
Very good video. Good explaining. Thank you
@nsanegaming5425
@nsanegaming5425 Месяц назад
anyone else having trouble seeing the health bar when you attach the widget to the charater? isn't not showing anything
@nothingspeaks
@nothingspeaks 11 месяцев назад
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
@Ash-qp3tr
@Ash-qp3tr 8 месяцев назад
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
@CodySmith-ci8hn
@CodySmith-ci8hn Год назад
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.
@Youshisu
@Youshisu Год назад
Does this widget updated every tick ?
@edwardkeefner3540
@edwardkeefner3540 Год назад
The health bar is never occluded if you use screen space.
@VirtusEdu
@VirtusEdu 2 года назад
Are you using health bars like this in your games? I want to know!
@kagi852
@kagi852 2 года назад
yaah but i used to your health bar from old video of your's
@lifesaver195
@lifesaver195 2 года назад
Yes
@lezardseventhbible564
@lezardseventhbible564 2 года назад
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.
@Aditya-us1qn
@Aditya-us1qn 2 года назад
Thank you!
@_Debu
@_Debu Год назад
is there any way we can show the health bar numbers while we damage the enemy?
@nothingspeaks
@nothingspeaks 11 месяцев назад
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?
@zakariatouil3123
@zakariatouil3123 Год назад
Yo man. Idk why but my healthbar is blurry af. how fix men
@K0UK0U
@K0UK0U Год назад
Thank you for the video
@VirtusEdu
@VirtusEdu Год назад
No problem :)
@MrLunox
@MrLunox Год назад
The small things i REALLY like about UE, i dont even have the bind dropdown next to the percentage? wtf
@GameRavens
@GameRavens Год назад
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.
@padmspb1
@padmspb1 2 года назад
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...
@MartKart8
@MartKart8 2 года назад
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.
@RedRidersTerraTrips
@RedRidersTerraTrips 2 года назад
on press 'action' set movement speed 0. play animation ?
@EyeNeo
@EyeNeo 2 года назад
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
@MartKart8
@MartKart8 2 года назад
@@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.
@augustforever7198
@augustforever7198 2 года назад
@@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.
@MartKart8
@MartKart8 2 года назад
@@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.
@maiworld_
@maiworld_ Год назад
would this replicate on mulitplayer?
@TeacherAlthea
@TeacherAlthea Год назад
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? >_
@TeacherAlthea
@TeacherAlthea Год назад
Should I do any code inside the Event Graph of the WB_HealthBar widget?
@VirtusEdu
@VirtusEdu Год назад
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
@TeacherAlthea
@TeacherAlthea Год назад
@@VirtusEdu Thank You very much!! I will try to join later! really appreciate it!
@kagi852
@kagi852 2 года назад
keep the good work
@VirtusEdu
@VirtusEdu 2 года назад
Thank you, I'm glad that you enjoyed it!
@EyeNeo
@EyeNeo 2 года назад
The quality of the video is 360p. Please re-upload with 4K or 1080p
@2009142
@2009142 2 года назад
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
@VirtusEdu
@VirtusEdu 2 года назад
The video is in 4K resolution, enjoy!
@muhammedemin6463
@muhammedemin6463 2 месяца назад
bro next time use 10000000000000x100000000000000 monitor pls i cant see anything amk
Далее
Я стала богата за ночь
12:04
Просмотров 259 тыс.
I Made the Same Game in 8 Engines
12:34
Просмотров 4,1 млн
Learning Unreal Engine in One Month to make a Game!
15:25
I Paid Fiverr Game Developers to Make the Same Game
10:25
How To Make A Health Bar In Unreal Engine 5
15:19
Просмотров 80 тыс.
Why Solo Developers Should Use Unreal
9:51
Просмотров 402 тыс.
6 Years of Learning Game Development
17:20
Просмотров 167 тыс.
10 Minutes vs. 10 Years of Animation
19:29
Просмотров 1,1 млн