A big thank you to viewers who pointed out ways to improve parts of this system! Here are their suggestions: 1. 07:05 To easily center the widget, place the anchor in the middle, then go to the alignment section and for both x and y put .5. Also tick the checkbox “size to content” that will make the box be the size of whatever is inside it. 2. This health system could potentially be improved by refactoring it as an actor component. Will plan on covering this in a future video :)
@MaximilianMitchell4 жыл бұрын
Glad to see my comment on Reddit for aligning the widget to the center is here. Hope it helps people! Great video for beginners!
@PendingKill4 жыл бұрын
@@MaximilianMitchell Thanks again for the tip, always appreciated!
@PenSyrup13 жыл бұрын
Can anyone help me i need to restart the level but i dont want to reparent my level because it is a fps template so when i reparent it screws everything up
@HarjyotR2 жыл бұрын
@@PendingKill hi great tutorial 👍 but is there a way to make it multiplayer because the client just freezes after you respawn and the server player can move but is like in a diffrent world because you can't see client and client only see dead body and instead of restarting game to respwn character is there a way to repawn character without resetting
@coffee_enjoyer_3 жыл бұрын
This has not even 1k views? It was really helpful to me! Really underrated video! Thanks
@PendingKill3 жыл бұрын
Thank you! Glad it was useful!
@hellotoyou142 жыл бұрын
but any other some shit about nothing for stupidity have millions .Nothing useful, stupidity and nothing. This is reality :) But this video and other learning goes to shadow.
@Skyflairl2p4 жыл бұрын
Man, If it wasnt for you and a couple other HIGHLY underrated youtube channels i would struggle so damn hard with keep myself motivated everytime im stuck on something. This is amazing, yet again its straight to the point and incredibly well explained! I can't thank you enough for these tutorials!
@PendingKill4 жыл бұрын
Thank you so much, that means a lot! We'll definitely keep going with the tutorials :)
@Skyflairl2p4 жыл бұрын
@@PendingKill You plan on following this one up with some info on combat vs some basic ai? That would be great!
@PendingKill4 жыл бұрын
@@Skyflairl2p Combat-wise, we're planning on a Gameplay Ability System tutorial, which lets you use replicated abilities (spells, melee attacks etc) for multiplayer games. but if you're looking for a basic AI tutorial with shooting mechanics, Asher Einhorn has an excellent series: kzbin.infovideos
@Skyflairl2p4 жыл бұрын
@@PendingKill Cant wait!
@dranoel98812 жыл бұрын
You came straight to the point. You spoke clearly and explained a lot. And made the tutorial as quick as possible, while not rushing it. 10/10, can´t do it any better at this point :D
@TheOnlyLucatoni3 жыл бұрын
Amazing tutorial keeping it really simple and explaining every step for us beginners, extremely underrated.
@deathdemon6960 Жыл бұрын
My good sir, I thank you for this tutorial. I was doing this for a game that I'm making in UE5, and this still worked perfectly.
@emirisik2 жыл бұрын
If you are trying to implement this system to a current project you have and you keep getting Accessed none trying to read property errors, be sure you check the variable with "? Is Valid" before casting or doing something with it. Cheers for the amazing tutorial, top quality!
@DaGamerDad3 жыл бұрын
4 minutes in this video has saved me from 3 days of headache! Thank you! 10 minutes in this video is already the mvp of game mode mechanics. Thank you again!
@sebastianvoinea11893 жыл бұрын
Very Good tutorial but If you want to make a checkpoint this system wont work because at the end it just restart everything. If you wanna make this system to work with checkpoints I recommend to make a transform variable and then set it to the spawn location. And after that instead of restarting the game just spawn the character at the position that you set in the variable. (My explanations are kind of bad I know)
@MrPolugnis2 жыл бұрын
Can you explain exactly what to do to make it work with checkpoints? Im confused on that!
@SketchTheArtist2 жыл бұрын
Great tutorial! Simple and well put together. One of the best I've seen. Thanks!
@glormond3 жыл бұрын
That''s amazing tutorial! Thank you!
@PendingKill3 жыл бұрын
Appreciate it!
@hiimathao2 жыл бұрын
this is the best damage updating i seen sooooo simple.
@Yannnus2 жыл бұрын
Oh my... Thank you so much for this!! In just 4 minutes I learned easily how to take damage, that's awesome. Keep up the great work, you have a new subscriber (and fan)!!
@yasuologitech10842 жыл бұрын
Thank you so much for making this tutorial, super easy to follow and super useful
@HaikuTutorials Жыл бұрын
Really crazy tutorial. Thank you soo much for this. Here is everything I need :)
@DigeL-el6uo2 ай бұрын
Quick and dirty. I like your style, great tutorial.
@DigeL-el6uo3 ай бұрын
Thank you, great tutorial, easy to follow. Also works with UE 5.4.2...
@michaelfloyd24774 жыл бұрын
Yo this was a dope tutorial. I like your method of setting up damage wayy better that what I was doing.
@PendingKill4 жыл бұрын
Thank you! More coming soon.
@rifz424 жыл бұрын
thanks for this! and adding the code is great! you may want to say this is for Blueprint in the title..
@PendingKill4 жыл бұрын
Will add that!
@sunso19912 жыл бұрын
thank you for the tuto! very clear and useful
@sideroshemimorphite87602 жыл бұрын
GoodWork!! Thats exactly What I wanted! Thank you. Nice explanation in details, which helps a lot.
@musikalniyfanboichik3 жыл бұрын
very professional and to the point! subbed
@joakal142 жыл бұрын
Thank you so much! This tutorial saved me so much time!
@JacobWort-Field3 жыл бұрын
Thanks for this video this fixed all my problems with my death and health system :)
@gamedevpaddy3 жыл бұрын
Dude you are awesome thanks for the help, really appreciate it keep at it!
@PendingKill3 жыл бұрын
Thanks appreciate it :D
@shakaama3 жыл бұрын
ok i completed this with only 2 mistakes. guess i'm getting better. full complete.
@likadsplit3 жыл бұрын
This tutorial fully worked thank you !!
@jeancarrascoplane55793 жыл бұрын
Straight to the point, amazing!
@FlyPimpDude2 жыл бұрын
Great tutorial. Learned a hell of a lot. I like that I got the rug pulled from under my feet when we started stripping code out to redo in base character. At the time I was like Noooooooooooo! what are ya doing? but this way dropped a few Ah-ha moments in my hazy understanding of interfaces. So for that I say many thanks Good Sir! :D Btw this still works in UE5
@tobi84452 жыл бұрын
If only he also covered a checkpoint system, it would be nice so as not to let the player start all the way at the start of the level.
@mintytavor83322 жыл бұрын
Thank you so much you deserve more subs
@lightyagami63072 жыл бұрын
Thanks a lot . Nicely explained
@CediEntertainment2 жыл бұрын
Great stuff, even as a complete novice this helps me a lot
@nex89393 жыл бұрын
Super helpful video, thank you
@jonathanodonnell38313 жыл бұрын
i have to rework my checkpoints but this was very helpful to finally get my character to take damage and respawn when health goes to 0 and respawn thanks
@utkarshnaik10143 жыл бұрын
bro u make my game so cool thank you
@j_dggaming64143 жыл бұрын
hey what if the gamestate is called character what can I do cause if I change it the code starts erroring
@gamingoverpowered41272 жыл бұрын
Thank you it helped so much. at the moment i am making a survival game called Lumber Life
@Fazma_IIKU2 жыл бұрын
tNice tutorials, good luck- you'll go far
@_jacquey3 жыл бұрын
This was great, I did it successfully. Only thing, the health could use some better visual, a health bar or something
@alissanweb70713 жыл бұрын
successfully destroyed my project trying to follow this. 10/10. slow... tf... down please.
@booo-live76242 жыл бұрын
really cool!
@deid4763 жыл бұрын
I love it ! Thanks
@aelren3 ай бұрын
helpful, thank's
@Lita1 Жыл бұрын
Very helpful video and I liked it too yes!!!!👍😅
@CodyReader3 жыл бұрын
Thanks for the help fam.
@joshuapinson56322 жыл бұрын
This helped so much
@justinoner20173 жыл бұрын
This all works great, I tried to add the same damage and collision you did with the box to a character that moves, when the player bumps into them no damage is being done, but when the player bumps into the box it does damage like usual.
@GrifChan2 жыл бұрын
Tanks it helped a lot ^-^
@GokdenizCetin Жыл бұрын
Thanks!
@Josh_Makes_Games2 жыл бұрын
fantastic video. fr
@Dreamer_33334 ай бұрын
ayo good tutorial so simple and easy but how do i create a health bar to this damage system? i was trying to use other guys tutorials but ir didnt work here
@emilebrodeur20914 жыл бұрын
Good work
@PendingKill4 жыл бұрын
Thanks so much! means a lot coming from Game Dev Pantry :)
@kreesgaming2 жыл бұрын
Thx bro
@SoundsLikeGlitter3 жыл бұрын
Help. All my nodes are connected and are as his but everything works and executes EXECEPT "cast to BP controller and call on death blueprint"
2 жыл бұрын
Do not copy paste the nodes. You need 2 nodes. Get Player Character and Get Player Controller. Get Player Controller > Cast to BP_PlayerController > Call On Death. It should work.
@issamaf804 жыл бұрын
Nice! i would love to see a tutorial on how to add Start and Stop Transitions animation for both walking and running there is free pack in the marketplace that goes by the name of MCO Mocap Basic or alsV4 that has some animations that you will need for this.
@PendingKill4 жыл бұрын
Thanks for the suggestion, I'll look into that!
@issamaf804 жыл бұрын
@@PendingKill would be great to see since there are 0 tutorials on how to do this.
@rifz424 жыл бұрын
I would also like to see a tutorial about this! thanks!
@kimped5 Жыл бұрын
I was looking for this one! Thanks. Do you have with healing also?
@CommanderColson3 жыл бұрын
Is there a way to have health slowly deteriorate over time, only to be replenished when the player picks up a consumable ('food', 'power up', ect)? Think the Health+hunger+hydration system a lot of survival games have, but simplified into one single life bar
@PendingKill3 жыл бұрын
Sure, you can have a timer set up on a specific interval that will decrease the player's health every time it gets called.
@SoundsLikeGlitter3 жыл бұрын
Does anyone know how to implement a health bar widget to show the entire time? Tried following another video but due to use changing a lot of class and project settings, that video wasn't compatible
@dorondavid46982 жыл бұрын
What do you mean the entire time? Make a HUD widget, add the health bar, and then add it to viewport
@soschu84692 жыл бұрын
hi there, following your tutorial, after setting up the instant kill box and trying out the result, the level doesn't restarts and i get the following error message: "TravelFailure: ServerTravelFailure, Reason for Failure: 'Failed to load package '/Game/UEDPIE_0_us_topdown_shooter_map_level_1''. Shutting down PIE." do you know how to fix this? thx
@randomcallum2 жыл бұрын
on the off chance you hit my dum problem make sure your box cullsion isn't set to block all or it won't be able to overlap and no damage will be done
@kingcowgill2 жыл бұрын
Hi im stuck at 13:10 because when I fall off world, the Z kills me but nothing happens am I doing something wrong? Blueprint Runtime Error: "Accessed None trying to read property PlayerCameraManager". Node: Start Camera Fade Graph: EventGraph Function: Execute Ubergraph BP Player Controller Blueprint: BP_PlayerController.
@Scionate4 жыл бұрын
You should really look at the overview of the engine framework in the docs and test that respawn in standalone.
@AscaronFrid3 жыл бұрын
good ! like !
@Alxndr323 жыл бұрын
Does this work with the First person game aswell? When I tried to change the "GameStateBase" to "GameState", it destroys my game and freezes everything. By the way, good video!
@ryder16583 жыл бұрын
spent about two hours on the first damage system then you say it's built in T.T
@wividscorpion7681 Жыл бұрын
how can i change the game mode to regular if the game mode asset is completely blank
@IoSkyBoyoI2 жыл бұрын
Any chance youd cover the Event Onreset node?
@MegasVN694203 жыл бұрын
nice you should have more subcribers
@vulcanhd16492 жыл бұрын
Hey, i am using UE5, and i dont know if this has anything to do with it, but when i start the playercontroller the first time we make it actually die, my PIE just crashes once the onDeath function has actually been called. bere is the error message i am getting. TravelFailure: ServerTravelFailure, Reason for Failure: 'Failed to load package '/Game/ThirdPerson/Maps/UEDPIE_0_ThirdPersonMap''. Shutting down PIE.
@spx_waterkitty91972 жыл бұрын
yeah same
@bartekwoj27733 жыл бұрын
Hi i have problem it seams like i cant find the "restart game " it only gives me "restart player" and it compleatly stop my character from moving now :C Help!!
@lacai527 Жыл бұрын
Out of interest why float? every time you can use integer use it, saves lots of performance, floats are a performance monster. if you really have to separate was the dmg 1.00004392 or 1 then use float, even if your damage lowers the futher you shoot, you are probably fine if it lower from 10 to 9 etc, rather than having it 9.43 or 8.65. and when you project it to HUD whit int its always nice round number, and you save performance when you dont have to do black magic so that float will become a round number (integer).
@laszlob36833 жыл бұрын
5:38 detach from controller pending destroy in ue 4.26
@mythanimation45472 жыл бұрын
When the player dies, it goes straight to "Game Over" instead of fading to black. Is there a reason why that might be the case?
@lollerkiller9003 жыл бұрын
i got a Big Problem. if i am Opening another Level ingame, it says "you Died" but you can play the Character. now if you Die, it restarts the level like normally and the Text is gone. so, if i remove the Parent in the Widget BP, it doesnt show anymore in the normal Death-Screen.
@seyff3672 жыл бұрын
everything works fine except the restart. Getting this: TravelFailure: "ServerTravelFailure, Reason for Failure: 'Failed to load package '/Game/ThirdPerson/Maps/UEDPIE_0_ThirdPersonMap''. Shutting down PIE." Anyone who can help?
@GBTC20113 жыл бұрын
It takes all the health at once instead of incrementally.
@StellarHarbor3 жыл бұрын
So sense of using custom damage system when we have Unreal one?
@commoncure33353 жыл бұрын
OnDeath is not being called for me. idk what's preventing it
@MalxMin3 жыл бұрын
I know this is an old comment but I had the same problem so just make sure your casting to the correct player controller and it will fix your problem.
@elantrauma Жыл бұрын
As @MalxMin said, go to your project settings, under maps and modes make sure player controller is the same as your cast to. Example: In settings under Player Controller Class: "BP_PlayerController" In your blueprint: the node should be "Cast to BP_PlayerController" Also make sure you have "Get Player Controller" connected to the object pin.
@Matooki2 жыл бұрын
Lets say I want to have obstacles in a game that kill the player, Do I have to make knew damage actors for each mesh or is there a way I can apply this one to different meshes
@PenSyrup13 жыл бұрын
Hi is there any other way i can restart level without changing level parent because when i reparent my level all ther stuff malfunctioned and i had to go back
@Iyadll2 жыл бұрын
i dont have event take damage
@JeekyWeeky3 жыл бұрын
for some reason after i die in my top down game, my camera starts pointing directly at the sky instead of at the character that just died? help?
@hristohristov98643 жыл бұрын
I have a Problem and I'm not sure why... So my health is going under 0 but my character isn't dying, my camera isn't fading and the text "You Died" isnt popping up... Plz help!!
@PendingKill3 жыл бұрын
That's a lot to unwrap, at which step did you start noticing failings? Once we identify the step, we can help correct it.
@deceptivetorch75573 жыл бұрын
How would I go about removing pre-existing UI (such as an onscreen reticle) whenever the “You Died” screen appears?
@dragishawk95643 жыл бұрын
To remove widgets from the screen when your character dies and the Death Screen (as I call such screens) appears, you'll need to get the widget you want to remove and then use Remove From Parent in a way similar to what this tutorial does for the Death Screen after two or so seconds and the game restarts. I had to cobble together something like this for getting rid of the health bar that I was implementing with this system, since it was still onscreen when the Death Screen came up for me.
@rawbeats3693 жыл бұрын
When I click on firstperson game mode there's no event graph
@whoissyx2 жыл бұрын
this tutorial is awesome but I am wondering how you would go about making health as a standalone parameter to individual characters that is then called into the damage bp to be used so you can have unique health amounts for each character in a game(if this is at all possible)
@CausticSpace2 жыл бұрын
You probably already got it but incase someone else doesn't, each instance of the character blueprint health variable is unique.
@N4NT43 жыл бұрын
I can't find the components tab in my actor, it just isn't there, can anybody please help
@unsolved15852 жыл бұрын
hey I've done everything to a tee i believe, but I am getting this message.. Anyone know a solution? TravelFailure: ServerTravelFailure, Reason for Failure: 'Failed to load package '/Game/Stuff/UEDPIE_0_NewMap''. Shutting down PIE.
@unsolved15852 жыл бұрын
Happens after I die and go to respawn.
@unsolved15852 жыл бұрын
and yes new map is my original map :P
@laszlob36833 жыл бұрын
5:83 there is nothing like unposess actor or pawn in ue 4.26
@foxywoxy0w0683 жыл бұрын
So I followed your video but it doesn't seem to be working at all, I'm doing a Side scroller so I don't know if that affects it in anyway but when my character touches the cube, they don't die at all. Which is weird as I'm pretty sure I did everything right, unless this type of death only works for Third Person and not Side Scroller.
@PendingKill3 жыл бұрын
The death should work for side scroller. Perhaps you can check your collision settings, and step through the blueprint logic with breakpoints to make sure the death event is getting called.
@arisunreal44732 жыл бұрын
how do i add a health bar?
@Primoris3 жыл бұрын
How would you stop the death screen from displaying when you change levels?
@PendingKill3 жыл бұрын
I believe that as it's set up in the sample project, the death screen only displays when the character's health dips below 0, not when the level changes. But if you're trying to change levels after the screen is already showing for some reason, you could call the "Remove from Parent" function on the widget.
@MrGhostYT_3 жыл бұрын
saving a timestamp lmao (13:28)
@ImagineThatStudiosYT2 жыл бұрын
I have a question, If you set the restart game node, does that mean the entire game will be reset to the very begining?
@CapKep2 жыл бұрын
Yes it is
@bendergriffey85602 жыл бұрын
hey man this is amazing i really appreciate you taking the time for us noobs but i seem to be missing something. when i tun into my damage actor it immediately kills me no matter how low i set it’s damage. i think saying my default health is 0.0 but i keep making that higher and to no avail nothing is changing. any ideas to what it could be?
@coltonkearschner9593 Жыл бұрын
did you ever figure this out? I am having the same issue.
@Farisazfar982 жыл бұрын
I did until 10:35 but when i test it , the player won't move with the usual controls
@Farisazfar982 жыл бұрын
I re-change gamestateclass form game state to game state base , and now the player are able to move again
@lionlion75383 жыл бұрын
this tutorial destroyed my game.. i had a custom character i made and now i can only use the default one from ue4 please help
@N0T_Dem0n3 жыл бұрын
How would you make a health bar from this health system?
@dragishawk95643 жыл бұрын
There are tutorials for implementing health bars elsewhere here, and they aren't too complicated to implement, since they key off the same variable (Health) as the damage system that is outlined here. You'll just need to stick in a Remove From Parent function for the widget in question when it comes time for your character to die, otherwise that health bar will stay on your screen when the "You Died" screen shows up, as it did for me before I cobbled together a solution. You'll also need a way to ensure that the Death Screen comes up for you and you alone instead of having it go off when you kill an enemy, but Pending Kill likely has a tutorial for handling just that.
@BanjoChicken692 жыл бұрын
Didn't work, event take damage didn't show up. I couldn't even add events. I tried this for an hour.
@elantrauma Жыл бұрын
Make sure your cube has a collision box with an "Actor BeginOverlap" and connect the "TakeDamage" custom event to it.
@GoatMaster933 жыл бұрын
this was really confusing to follow through when you speed the video up