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

  Рет қаралды 67,793

Pixel Helmet

Pixel Helmet

Күн бұрын

Пікірлер: 118
@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=SUMSAL 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=SUMSAL Unreal Engine 5: Develop Your First Two Games www.udemy.com/course/ue5-twogames/?couponCode=SUMSAL Unreal Engine 5 for Beginners - The Complete Course (2024) www.udemy.com/course/ue5-beginner/?couponCode=SUMSAL Unreal Engine 5: Blueprints for Beginners www.udemy.com/course/unreal-engine-5-blueprints/?couponCode=SUMSAL How to Add Steam Multiplayer: Unreal Engine 5 Blueprint (2024) www.udemy.com/course/how-to-add-steam-multiplayer-unreal-engine-5-blueprint/?couponCode=SUMSAL How to Publish a Game on Steam - Unreal Engine 5 (2024) www.udemy.com/course/ue5-steam/?couponCode=SUMSAL Simple Inventory System - Unreal Engine 5 Multiplayer (2024) www.udemy.com/course/ue5-multiplayer-inventory/?couponCode=SUMSAL Unreal Engine 5: Complete Lighting Guide for Beginners www.udemy.com/course/ue5-lighting/?couponCode=SUMSAL Be sure to subscribe to our KZbin Channel for actionable Unreal Engine 5 beginner tutorials: kzbin.info
@CaspiannDev
@CaspiannDev 4 ай бұрын
Fantastic tutorial ! Clear, easy to follow, straight to the point and I actually learned a lot about the blueprints connections !
@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!
@TIAGOBEZERRA999
@TIAGOBEZERRA999 Жыл бұрын
Thank you so much, it helped me a lot... The only thing missing is a way of gain health back.
@Fizziepop
@Fizziepop 7 ай бұрын
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!!
@Sileff
@Sileff 2 жыл бұрын
Great tutorial! Very well paced. Looking forward to more.
@PixelHelmet
@PixelHelmet 2 жыл бұрын
I appreciate you, Sileff. Thank you for the encouragement!
@AhmadNafa
@AhmadNafa Жыл бұрын
Such an inspirational video this is.
@lisowiligas1524
@lisowiligas1524 Жыл бұрын
Hey man great tutorial, explained it to perfection
@PixelHelmet
@PixelHelmet Жыл бұрын
Thank you very much for the nice words.
@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!
@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.
@paulshelkov7956
@paulshelkov7956 Жыл бұрын
Thanks buddy. Big help!
@stathiszoulakis9599
@stathiszoulakis9599 8 ай бұрын
best health/dmg tutorial video
@animefanime11
@animefanime11 10 ай бұрын
Thank you for such a great tutorial! So much useful information explained in such a clear way : )
@noorn.1981
@noorn.1981 2 жыл бұрын
Great explanation 👏
@unrealhabitat
@unrealhabitat Жыл бұрын
Amazing explanation, thank you! :D
@matteocamboni3572
@matteocamboni3572 5 ай бұрын
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).
@bigbasbeardegummiland2756
@bigbasbeardegummiland2756 Жыл бұрын
Wow that tutorial was very clear and concise thank you!
@BhavinMachhiX
@BhavinMachhiX 2 жыл бұрын
Awesome video, It helped me in my project
@PumpNFI
@PumpNFI 2 жыл бұрын
Very helpful thank you 👍
@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.
@ideneroozbayani125
@ideneroozbayani125 2 жыл бұрын
I loved this tutorial, it has served me well.
@osio0000
@osio0000 2 жыл бұрын
Thank you brother
@Lacrete74
@Lacrete74 2 жыл бұрын
Thanks for the tutorial, works great
@faltaintgaming
@faltaintgaming 11 ай бұрын
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?
@unflameble1197
@unflameble1197 Жыл бұрын
thanks it was helpful
@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
@Vladd_1605
@Vladd_1605 2 жыл бұрын
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
@Ewen-bd2co
@Ewen-bd2co 7 ай бұрын
merci pour cette incroyable vidéo J'ai laché mon like
@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.
@dnajlwosqkdasjczdbkahdwcs
@dnajlwosqkdasjczdbkahdwcs 8 ай бұрын
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.
@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
@Yacob_Rl
@Yacob_Rl 4 ай бұрын
quick question i have everything working fine for the hp/damage system up until the last bit of the video that kills the player i have followed this guide and the code matches up but nothing happens when hp reaches 0? i am using the default third person character which has default code attached to it that enables movement one of those lines of code uses the "Event begin play" for controller mapping. so i couldn't make a new "Event Begin play" to match your line of code exactly any help/tips please?
@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.
@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.
@DragonXO
@DragonXO Жыл бұрын
I cant create a "event begin play" because it already exists how can i do it please help
@choord5746
@choord5746 Жыл бұрын
You can use something called "Sequence" and plug it on each.
@cadenhole
@cadenhole Жыл бұрын
hey got evrything to work but the death won't work. Did it on first person mode.
@flaffys6791
@flaffys6791 Жыл бұрын
Can use progress bars too no?
@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.
@marsh25411
@marsh25411 Жыл бұрын
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 Жыл бұрын
Ok not sure what the issue was but i started with a fresh project and did this tutorial and it works.
@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 7 ай бұрын
so now when i have the health plus in my level, how do i make it raise my health when i pick it up?
@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!!
@baryafe
@baryafe 7 ай бұрын
how do i make it that when the player dies, the screen goes "game over"?
@TheNacht
@TheNacht Жыл бұрын
I cant get the character to move after I made all the nodes idk what I did wrong
@Eyclonus
@Eyclonus 6 ай бұрын
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.
@raw2wmobile.legends773
@raw2wmobile.legends773 2 жыл бұрын
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
@olbap2014
@olbap2014 2 жыл бұрын
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 2 жыл бұрын
Same. Did you ever figure the problem out?
@olbap2014
@olbap2014 2 жыл бұрын
@@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 2 жыл бұрын
@@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
@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).
@eltwinscodm625
@eltwinscodm625 2 жыл бұрын
how can add animation death when health bar get zero 🥺🧐
@noblestruggle108
@noblestruggle108 9 ай бұрын
I get this odd error that it says "none to read MB main: on the update health module, any recommendations?
@noblestruggle108
@noblestruggle108 9 ай бұрын
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)
@Retro-xf9jb
@Retro-xf9jb Жыл бұрын
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.
@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.
@colbyfox7906
@colbyfox7906 Жыл бұрын
got it all done and it crashed when I clicked save
@charlotteelina9358
@charlotteelina9358 2 жыл бұрын
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
@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?
@hakkutodev
@hakkutodev 2 жыл бұрын
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
@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)
@mr.kubitea
@mr.kubitea 8 ай бұрын
controller thing doesn't even allow player to move camera or move in directions bruh
@Eyclonus
@Eyclonus 6 ай бұрын
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.
@TechlordXD
@TechlordXD 6 ай бұрын
Nothing happens when HP drops to zero
@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
@patrykleveldesign
@patrykleveldesign 2 жыл бұрын
Is not on Ability System :( so is not correct, how to do this
@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
@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
@guystech8052
@guystech8052 Жыл бұрын
I DONT WANT TO USE PAIN VOLUME 😂, tell me how to make an enemy that damage the player
@jorgecano8530
@jorgecano8530 2 жыл бұрын
Help please
@jorgecano8530
@jorgecano8530 2 жыл бұрын
My hp goes from 100 to 0
@garyyates2592
@garyyates2592 2 жыл бұрын
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 2 жыл бұрын
damage is cost of upgrading hardware to use unreal 5 good health is not doing it and staying on 4
@chronosschiron
@chronosschiron 2 жыл бұрын
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
Рет қаралды 54 М.
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 46 МЛН
Человек паук уже не тот
00:32
Miracle
Рет қаралды 3,9 МЛН
I Struggled With Blueprint Interfaces for Years!! (Unreal Engine 5)
16:48
Glass Hand Studios
Рет қаралды 189 М.
How To Make A Health Bar In Unreal Engine 5
15:19
Matt Aspland
Рет қаралды 81 М.
How To Set Up A Basic Stamina System - Unreal Engine 5 Tutorial
19:58
Pitchfork Academy (MizzoFrizzo & Co.)
Рет қаралды 1,1 М.
Unreal Engine 5 2D Game Tutorial [2024]
36:09
Pixel Helmet
Рет қаралды 526 М.
5 Tricks you (probably) don't know about Unreal Engine 5
10:44
Cinecom.net
Рет қаралды 394 М.
Why Unreal Engine 5.4 is a Game Changer
12:46
Unreal Sensei
Рет қаралды 1,3 МЛН
How to Make a Simple Behavior Tree in Unreal Engine 5 - Advanced AI
20:47
How To Build an Enemy Health and Damage System in Unreal Engine
17:25
Just Another Dang How To Channel
Рет қаралды 17 М.
How to Make a 3D Health Bar for your Enemy in Unreal Engine 5
6:43