How to Set up Health and Damage System - Unreal Engine 5 Tutorial

  Рет қаралды 63,113

Pixel Helmet

Pixel Helmet

Күн бұрын

In this video, I'm going to show you how to set up a Health and Damage System in Unreal Engine 5. This system will allow you to track the health of your characters and damage they've taken in game.
This tutorial is designed for beginners, so if you've never worked with Unreal Engine before, don't worry! I'll be walking you through the entire process step by step. By the end of this video, you'll have a solid understanding of how to set up a Health and Damage System in Unreal Engine 5!
Download the health assets here:
drive.google.com/file/d/1bjss...
Get 92% off all my game development courses:
gameinstruct.com/
Official Website ► gameinstruct.com/
Discord ► / discord
Twitter ► / pixelhelmet
Facebook ► / pixelhelmet
----------------------------------
Also available on Udemy 30-85% off this month:
How to Make a FPS Game - Unreal Engine 5 Multiplayer (2024)
www.udemy.com/course/ue5-mult...
How to Make a 2D Clicker Game - Unreal Engine 5 (2024)
www.udemy.com/course/make-a-2...
Unreal Engine 5: Develop Your First Two Games
www.udemy.com/course/ue5-twog...
Unreal Engine 5 for Beginners - The Complete Course (2024)
www.udemy.com/course/ue5-begi...
Unreal Engine 5: Blueprints for Beginners
www.udemy.com/course/unreal-e...
How to Add Steam Multiplayer: Unreal Engine 5 Blueprint (2024)
www.udemy.com/course/how-to-a...
How to Publish a Game on Steam - Unreal Engine 5 (2024)
www.udemy.com/course/ue5-stea...
Simple Inventory System - Unreal Engine 5 Multiplayer (2024)
www.udemy.com/course/ue5-mult...
Unreal Engine 5: Complete Lighting Guide for Beginners
www.udemy.com/course/ue5-ligh...
Be sure to subscribe to our KZbin Channel for actionable Unreal Engine 5 beginner tutorials:
kzbin.info...
#unrealengine5 #healthbar #indiegamedev #ue5 #damagesystem

Пікірлер: 116
@PixelHelmet
@PixelHelmet Жыл бұрын
Get my 4K high-quality courses on gameinstruct.com/ Also available on Udemy 30-85% off this month: How to Make a FPS Game - Unreal Engine 5 Multiplayer (2024) www.udemy.com/course/ue5-multiplayer-fps/?couponCode=JUNECOUP How to Make a 2D Clicker Game - Unreal Engine 5 (2024) www.udemy.com/course/make-a-2d-idle-clicker-game-unreal-engine-5-blueprint/?couponCode=JUNECOUP Unreal Engine 5: Develop Your First Two Games www.udemy.com/course/ue5-twogames/?couponCode=JUNECOUP Unreal Engine 5 for Beginners - The Complete Course (2024) www.udemy.com/course/ue5-beginner/?couponCode=JUNECOUP Unreal Engine 5: Blueprints for Beginners www.udemy.com/course/unreal-engine-5-blueprints/?couponCode=JUNECOUP How to Add Steam Multiplayer: Unreal Engine 5 Blueprint (2024) www.udemy.com/course/how-to-add-steam-multiplayer-unreal-engine-5-blueprint/?couponCode=JUNECOUP How to Publish a Game on Steam - Unreal Engine 5 (2024) www.udemy.com/course/ue5-steam/?couponCode=JUNECOUP Simple Inventory System - Unreal Engine 5 Multiplayer (2024) www.udemy.com/course/ue5-multiplayer-inventory/?couponCode=JUNECOUP Unreal Engine 5: Complete Lighting Guide for Beginners www.udemy.com/course/ue5-lighting/?couponCode=JUNECOUP Be sure to subscribe to our KZbin Channel for actionable Unreal Engine 5 beginner tutorials: kzbin.info
@royataylor7797
@royataylor7797 Жыл бұрын
Fantastic tutorial, I like how you took the time to explain exactly what each node was doing and how/why everything connected. I learnt a lot from this! Thank you!
@0handsgg566
@0handsgg566 Жыл бұрын
Holly! I'm new on Unreal world and this tutorial unlock a new level! I love it!
@Fizziepop
@Fizziepop 2 ай бұрын
You are amazing. So thorough in your explanations of each action, makes it easy to not only see what you're doing, but to actually learn why and remember the process easier. Another one of those videos where I have wished I could click that like button more than 10 times throughout the watch. tysm!!
@michellelombard4237
@michellelombard4237 2 жыл бұрын
Thanks Nafei! its great and so helpful. The way you explain your courses are simple and easy to follow. Great work!! :)
@PixelHelmet
@PixelHelmet 2 жыл бұрын
Thank you for the kind words Michelle. And thanks back to you for all the support!
@ideneroozbayani125
@ideneroozbayani125 Жыл бұрын
I loved this tutorial, it has served me well.
@bigbasbeardegummiland2756
@bigbasbeardegummiland2756 10 ай бұрын
Wow that tutorial was very clear and concise thank you!
@Sileff
@Sileff 2 жыл бұрын
Great tutorial! Very well paced. Looking forward to more.
@PixelHelmet
@PixelHelmet 2 жыл бұрын
I appreciate you, Sileff. Thank you for the encouragement!
@paulshelkov7956
@paulshelkov7956 Жыл бұрын
Thanks buddy. Big help!
@Lacrete74
@Lacrete74 Жыл бұрын
Thanks for the tutorial, works great
@bhavinmachhi1999
@bhavinmachhi1999 Жыл бұрын
Awesome video, It helped me in my project
@danelokikischdesign
@danelokikischdesign 8 ай бұрын
Amazing explanation, thank you! :D
@animefanime11
@animefanime11 5 ай бұрын
Thank you for such a great tutorial! So much useful information explained in such a clear way : )
@PumpNFI
@PumpNFI 2 жыл бұрын
Very helpful thank you 👍
@noorn.1981
@noorn.1981 2 жыл бұрын
Great explanation 👏
@AhmadNafa
@AhmadNafa Жыл бұрын
Such an inspirational video this is.
@TIAGOBEZERRA999
@TIAGOBEZERRA999 Жыл бұрын
Thank you so much, it helped me a lot... The only thing missing is a way of gain health back.
@lisowiligas1524
@lisowiligas1524 Жыл бұрын
Hey man great tutorial, explained it to perfection
@PixelHelmet
@PixelHelmet Жыл бұрын
Thank you very much for the nice words.
@stathiszoulakis9599
@stathiszoulakis9599 3 ай бұрын
best health/dmg tutorial video
@osio0000
@osio0000 Жыл бұрын
Thank you brother
@unflameble1197
@unflameble1197 Жыл бұрын
thanks it was helpful
@Ewen-bd2co
@Ewen-bd2co 3 ай бұрын
merci pour cette incroyable vidéo J'ai laché mon like
@davideblonda6159
@davideblonda6159 Жыл бұрын
This was so pleasefull to watch, no stuttering voice, and a very very clear to follow instructions, thank you. if you have such clarity even in the purchasable course, I can't help but be tempted to buy it.
@matteocamboni3572
@matteocamboni3572 23 күн бұрын
Thanks for the great tutorial, I just have one question: how can I implement the logic to increase the life? (In my case I am creating an Actor Blueprint of a heart).
@aspekt7034
@aspekt7034 Жыл бұрын
This was very helpful but could you please make a tutorial on how to add an animation of how the player dies and then teleports him
@kimped5
@kimped5 Жыл бұрын
Great tutorial! Do you have any example on how to quit game when the damage reaches zero? And also how to replenish health when entering a box?
@PixelHelmet
@PixelHelmet Жыл бұрын
Hi Kimboor, I’ll make a tutorial very soon on healing as well.
@PaulaSilva-nq1uq
@PaulaSilva-nq1uq Жыл бұрын
Thanks a lot for this tutorial, i cannot download the game assets ( 4 color squares) , do you have an alternative link for downloading? ty
@madeeasy7148
@madeeasy7148 Жыл бұрын
thanks for a great tutorial! got a sub! would this the same logic that we done here work if i wanted to add a bullet widget? i would just put some logic in the bp character bp? thanks
@PixelHelmet
@PixelHelmet Жыл бұрын
Thank you very much! Yes you can do that. Just add that code inside of the BP_Player blueprint we made and it should work.
@inkinn8587
@inkinn8587 Жыл бұрын
I was trying to do this in unreal engine 4, and it worked out good, until I had to use the quickly add to the project button, which apparently doesn't exist in UE4
@faltaintgaming
@faltaintgaming 6 ай бұрын
Greetings, I want to say a great tutorial. Very helpful and informative. I have followed it as much as i could and implemented it in my own blueprint. It works but every time i stop running the game i get the error: Blueprint Runtime Error: "Accessed None trying to read property UI_Player". Node: Set Health Bar Info Graph: EventGraph Function: Execute Ubergraph BP Player Controller Blueprint: BP_PlayerController . Has anyone else come a cross a similar issue?
@melonadegg
@melonadegg Жыл бұрын
Just a quick question! Do I have to create the BP Character Controller or can I just do all of this in the already made BP Third Person Character? Thanks!
@PixelHelmet
@PixelHelmet Жыл бұрын
Hi Nislaav, you can do it in the already-existing BP Third Person Character.
@AlterEgo10
@AlterEgo10 Жыл бұрын
idk if UE has updated since this video, but I'm currently trying to do this, and I'm at the point where you're saying to add "event begin play" at 24:11, and I've got an "add input mapping" that you don't have in the 3rd person blueprint, and it is using "event begin play" and it's not letting me add another one, any advice?
@PixelHelmet
@PixelHelmet Жыл бұрын
Hi Alter, yes it has been updated since. You just add the code after the Add Input Mapping. Just continue the code, that's all fine. You can only have one Begin Play event in a blueprint.
@baryafe
@baryafe 3 ай бұрын
so now when i have the health plus in my level, how do i make it raise my health when i pick it up?
@KazeN0Kage
@KazeN0Kage Жыл бұрын
so im trying to make a shield and health bar work together, think you can push me in the right direction? also ty for tut i learned alot just what im trying to do is more complex to me
@PixelHelmet
@PixelHelmet Жыл бұрын
Hi Kaze. For armor, you can use the same method as the health with another float variable called Armor, Max Armor and so on. And if you get hit, you can calculate the lost armor depending on how much damage you receive from the AnyDamage event for example.
@flaffys6791
@flaffys6791 Жыл бұрын
Can use progress bars too no?
@iDentityUS
@iDentityUS Жыл бұрын
Hey this is an awesome tutorial, but I’ve been trying to find someone to help me out with this 1 thing. I can’t find it anywhere so maybe you can point me in the right direction. How do I add an armor bar over the health bar so that it (armor bar) takes damage first before the health bar? I would greatly appreciate your help…
@PixelHelmet
@PixelHelmet Жыл бұрын
I’ll make a tutorial about this asap.
@iDentityUS
@iDentityUS Жыл бұрын
@@PixelHelmet yesss! Can’t wait!!
@marsh25411
@marsh25411 11 ай бұрын
Ok so ive just completed this tutorial and it mostly works except for some reason either the value of the Current Health or Max Health aren't being set. I've made both of their default values be 100 but whenever I start the game it just defaults to 0. Ive even tried manually setting the values to start at 100 and it doesnt work. Any help?
@marsh25411
@marsh25411 11 ай бұрын
Ok not sure what the issue was but i started with a fresh project and did this tutorial and it works.
@OpalPlayz
@OpalPlayz Жыл бұрын
Every I exit the level editor it gives me an error saying "Accessed none trying to read property WB_Main" any idea on where I went wrong?
@PixelHelmet
@PixelHelmet Жыл бұрын
Accessed none means that you defined the variable in a wrong way. It can’t find any information inside of that variable. Try to take a look at where you created that widget and how you defined the variable. The mistake should be there.
@cadenhole
@cadenhole Жыл бұрын
hey got evrything to work but the death won't work. Did it on first person mode.
@raw2wmobile.legends773
@raw2wmobile.legends773 Жыл бұрын
trying to do this but apparently it doesnt work when making a server multiplayer game. Any fixes? i get errors unless i use custom event but than health bar doesnt show
@hxrdwired
@hxrdwired Жыл бұрын
it's always an option in details but what you're looking for is Replication in the details panel
@eltwinscodm625
@eltwinscodm625 Жыл бұрын
how can add animation death when health bar get zero 🥺🧐
@DragonXO
@DragonXO 11 ай бұрын
I cant create a "event begin play" because it already exists how can i do it please help
@choord5746
@choord5746 11 ай бұрын
You can use something called "Sequence" and plug it on each.
@baryafe
@baryafe 3 ай бұрын
how do i make it that when the player dies, the screen goes "game over"?
@galberger3937
@galberger3937 Жыл бұрын
Hi. when my character life point will hit 50 i want the health color bar to change from green to red how to do that?
@hxrdwired
@hxrdwired Жыл бұрын
You would set this up using a curve! It's a bit more advanced but just search in YT Changing Color of health bar using Curves.
@Retro-xf9jb
@Retro-xf9jb 9 ай бұрын
Hi sorry to be a bother I think I did everything correctly I connected it all and Have double checked it like 3 times, but the health number isn't updating on the UI and I don't know what I did wrong any ideas? sorry again.
@charlotteelina9358
@charlotteelina9358 Жыл бұрын
Hi ,thanks for wonderfull Tuto, I just have one question/problem, apparently in not able to get the "set Percent" (native function ?) that you use in the event Graph of your WP_Main... I'm not able to understand why.... Any idea ?
@hxrdwired
@hxrdwired Жыл бұрын
You might be referencing an object which has a different workflow to get the same result. You need to make sure Progress Bar is selected and that it Is variable
@noblestruggle108
@noblestruggle108 4 ай бұрын
I get this odd error that it says "none to read MB main: on the update health module, any recommendations?
@noblestruggle108
@noblestruggle108 4 ай бұрын
Fixed the read error by placing in an is valid prompt, however now only thing left is getting the text to update properly after respawn . Currently it's staying at 0 after death. (BTW, I loved this video this is amazing help I'm just new lol)
@olbap2014
@olbap2014 Жыл бұрын
I cant get it to lose health at a steady rate, it goes from 100 to 0 directly and when I get close again it gives me 1 health. HELP
@garyyates2592
@garyyates2592 Жыл бұрын
Same. Did you ever figure the problem out?
@olbap2014
@olbap2014 Жыл бұрын
@@garyyates2592 Yes, I put the values on the wrong order and It kept subtracting everything all of a sudden. Make sure you put the number you are subtracting second
@garyyates2592
@garyyates2592 Жыл бұрын
@@olbap2014 I figured it out. Thanks!
@YungSuz
@YungSuz Жыл бұрын
@@garyyates2592 hey whats the solution have the same problem
@YungSuz
@YungSuz Жыл бұрын
ok now i get it you have to change the "EventAnyDamage" in the second slot of the subtraction .. so its current health - damage
@joshcatchpole2621
@joshcatchpole2621 Жыл бұрын
can anyone help please it only allows me to add booleons in the widgit blueprint
@hxrdwired
@hxrdwired Жыл бұрын
To the left under variables, you should be able to swap from Bool to Integer or anything else you may need (Float in this case)
@TheNacht
@TheNacht 8 ай бұрын
I cant get the character to move after I made all the nodes idk what I did wrong
@Eyclonus
@Eyclonus Ай бұрын
If you're doing the First Person template, you want to add "Create WB Main UI Widget" after the "Add Mapping Context" on the existing Player Controller for the template. The First Person Controller needs that blueprint to enable mouselook etc.
@patrykleveldesign
@patrykleveldesign Жыл бұрын
Is not on Ability System :( so is not correct, how to do this
@colbyfox7906
@colbyfox7906 Жыл бұрын
got it all done and it crashed when I clicked save
@hakkutodev
@hakkutodev Жыл бұрын
how can i hide the HP UI on another level?
@hxrdwired
@hxrdwired Жыл бұрын
Remove From Parent on Event Begin Play of the level itself I'd imagine
@Blanqmind
@Blanqmind Жыл бұрын
ok but where did those images come from? I seriously don't know what I'm meant to look up here.
@PixelHelmet
@PixelHelmet Жыл бұрын
Hi, If you're referring to the custom UI images, it's something I made custom in Photoshop. I've uploaded them for you in the video description (Link to google drive).
@noskir
@noskir Жыл бұрын
The Target in the Controller in UE5.1 doesn't work. I have delete all and remake it twice and it still not work.
@hxrdwired
@hxrdwired Жыл бұрын
I can confirm this works in ue5.1 latest version as of 1/21/2023. It appears a step might have been missed here
@adammilbourne4267
@adammilbourne4267 Жыл бұрын
if you havent fixed i found that under variables the get UI pin type was not set the widget blueprint previously made
@mr.kubitea
@mr.kubitea 4 ай бұрын
controller thing doesn't even allow player to move camera or move in directions bruh
@Eyclonus
@Eyclonus Ай бұрын
Just add the create WB Main widget after the Add Mapping Context in the existing template. UE5 did a change and added that to the default controller.
@reznik63
@reznik63 Жыл бұрын
Does not work on 5.1.1 because there the control goes through the begin play and it can be called only once in one blueprint
@PixelHelmet
@PixelHelmet Жыл бұрын
Hi, it works in 5.1.1. Can you please explain the issue and I might be able to help. Thank you.
@reznik63
@reznik63 Жыл бұрын
Nevermind, just need sequence node
@reznik63
@reznik63 Жыл бұрын
@@PixelHelmet The fact is that the standard thirdperson blueprint already uses the beginplay node, and in one blueprint it cannot be used twice, so I had to use the sequence node in order for the startplay to work in the logic from your video, so everything works, sorry about my words :D
@reznik63
@reznik63 Жыл бұрын
@@PixelHelmet Really very useful tutorial thanks
@reznik63
@reznik63 Жыл бұрын
@@PixelHelmet If possible, could you also make a tutorial on gaining experience and levels player?
@dnajlwosqkdasjczdbkahdwcs
@dnajlwosqkdasjczdbkahdwcs 4 ай бұрын
I hate trying to learn game development. I know it's hard, I know there's adversity to overcome. But every time I think I'm making progress something genuinely insurmountable appears, and when I say insurmountable, I mean completely and utterly incontrovertibly FUCKED. I must have forgot to install the perfect magical version of UE5 where shit actually gets done, because I find myself struggling against jittery tilesets, essential features disappearing, the engine somehow warping reality to work completely differently from other people's experience, and the complete lack of care Paper2D has received from Epic Games. I have genuinely wasted hours upon hours of my life sitting at a computer, looking up fixes for issues I couldn't solve with logic or reasoning, but don't worry. I don't expect anyone to care, it's obviously just a 'me problem'. My life is fucking meaningless.
@TechlordXD
@TechlordXD Ай бұрын
Nothing happens when HP drops to zero
@jorgecano8530
@jorgecano8530 Жыл бұрын
Help please
@Sownll5980
@Sownll5980 Жыл бұрын
It does not work with first person because i cant have 2 begin on play events
@hxrdwired
@hxrdwired Жыл бұрын
You can extend this to the original begin play, if it gets messy select the code and collapse to function
@OrangeGenerator
@OrangeGenerator Жыл бұрын
use a sequencer node
@KittenisKitten
@KittenisKitten Жыл бұрын
Great Tutorial, but around 20min Mark, it just gets bit confusing and your going to fast, i have had to watch three times to figure which window your in and jumping between the screens is utterly confusing
@KittenisKitten
@KittenisKitten Жыл бұрын
Also WB Main is not compatible with SethealthbarInfo
@hxrdwired
@hxrdwired Жыл бұрын
I agree, he has weird pacing which is hard to follow. It should be the effective window and explaining WHERE you can check it. If WB main is not compatible, look at variables and change the type to the correct Float value
@guystech8052
@guystech8052 7 ай бұрын
I DONT WANT TO USE PAIN VOLUME 😂, tell me how to make an enemy that damage the player
@jorgecano8530
@jorgecano8530 Жыл бұрын
My hp goes from 100 to 0
@garyyates2592
@garyyates2592 Жыл бұрын
Same. Did you ever figure out why?
@hxrdwired
@hxrdwired Жыл бұрын
1. Make sure the Max Health Variable is set to 100 and make sure the damage volume is set as 10-90 or something but also it seems you might have plugged Max Health and confused it with Current Health
@chronosschiron
@chronosschiron Жыл бұрын
damage is cost of upgrading hardware to use unreal 5 good health is not doing it and staying on 4
@chronosschiron
@chronosschiron Жыл бұрын
oh and everyone zoom in to the feet on this third person character and notice its not even flat to surface aint that pro
@hxrdwired
@hxrdwired Жыл бұрын
V helpful, thanks.
@chronosschiron
@chronosschiron Жыл бұрын
@@hxrdwired construction stuff , even major couriers at one time were mob owned
Unreal Engine 5 Health and Damage System Tutorial [2023]
27:12
Pixel Helmet
Рет қаралды 41 М.
How to Make a Simple Health System in Unreal Engine 5
7:21
Gorka Games
Рет қаралды 50 М.
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 47 МЛН
Health Bar Tutorial 👉 With HUD On Screen | Unreal Engine 5
11:21
Buvesa Game Development
Рет қаралды 20 М.
I Struggled With Blueprint Interfaces for Years!! (Unreal Engine 5)
16:48
Glass Hand Studios
Рет қаралды 171 М.
I went through ALL Unreal Engine Plugins, here is what I found
36:35
Unreal Engine 5 AI Patrol and Chase Tutorial
12:37
Pixel Helmet
Рет қаралды 27 М.
How To Make A Health Bar In Unreal Engine 5
15:19
Matt Aspland
Рет қаралды 73 М.
Learning Unreal Engine in One Month to make a Game!
15:25
Will Hess
Рет қаралды 43 М.
Unreal 5 Secrets Every Filmmaker Must Know
15:04
Josh Toonen
Рет қаралды 194 М.
Why Unreal Engine 5.4 is a Game Changer
12:46
Unreal Sensei
Рет қаралды 995 М.
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 47 МЛН