How to Make a Simple Health System in Unreal Engine 5

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024

ความคิดเห็น • 130

  • @__a.b.e.l__
    @__a.b.e.l__ ปีที่แล้ว +20

    I'm new to unreal and game developing in general, and I've followed your tutorials for a fe days. As the rest of the people said here, your videos are incredebly helpful when you don't know where to start or just how to do it.

    • @GorkaGames
      @GorkaGames  ปีที่แล้ว +1

      Thank you so much!!

  • @xdreamx
    @xdreamx 2 หลายเดือนก่อน +1

    I struggled with this problem for about a year while following complex tutorials that claimed their methods were supreme, yet here you are... solving my problem in 7 mins. May God bless you, sir!!

  • @chandlerfrantz3140
    @chandlerfrantz3140 ปีที่แล้ว +6

    Like everyone else has said; great stuff. I, for one, would love a clear video on how to take and deal damage.

    • @GorkaGames
      @GorkaGames  ปีที่แล้ว +2

      Thanks! Yeah so I do have a damage implementation on my 2nd combat system tutorial: th-cam.com/video/-8BTWTf-vrs/w-d-xo.html

  • @Baleur
    @Baleur ปีที่แล้ว +12

    Bro i followed another HUGE youtubers health system tutorial, and his way was insanely complex in the healthbar widget, called functions to update it and new variables.
    Your way is so much simpler. And doesnt break on respawn.

    • @GorkaGames
      @GorkaGames  ปีที่แล้ว +2

      Thank you so much man! I always try to make my tutorials easy-to-follow. And turn complicated systems into easy ones

  • @shadowcoffee7661
    @shadowcoffee7661 8 หลายเดือนก่อน

    great video !!! super easy to follow and explained how to use or upgrade it. thanks

  • @davidecantalupi3000
    @davidecantalupi3000 ปีที่แล้ว

    You're amazing dude, thanks for the contents!!

  • @brandonwalker4431
    @brandonwalker4431 2 ปีที่แล้ว +1

    This was a great and clear video!

  • @DavidPulvermueller
    @DavidPulvermueller ปีที่แล้ว +2

    great video. i have just one question when i open my third person character blueprint i see different blocks already used so when i try to use event begin play it wont allow me how do i change this?

    • @its_soaz
      @its_soaz 7 หลายเดือนก่อน +2

      so u should already have a beginplay by default connected to other stuff
      just reconnect the begin play to the stuff ur adding theenn connect the stuff ur adding to whatever the beginplay was connected to

  • @sirpigsalot9416
    @sirpigsalot9416 ปีที่แล้ว +2

    The health bar isn’t showing but the M bit works

  • @naytbreeze
    @naytbreeze 2 ปีที่แล้ว +3

    Great video again. For some reason when i go to add the Health bar UI in the Bp third person blueprint I can't get it to show on my screen after repeating your steps. I ended up finding another video that mentioned adding an overlay on to the canvas panel first then progress bar which I did. In that video they also added another BP controller and added the UI for the health bar in the event graph there (Instead of BP Thirdperson). Then they switched the controller under the world settings and the UI appears on screen. I did this and it worked as well. But I was wondering why It didn't work under the default player controller setting in the world setting like yours does. Thoughts? Thanks again!

    • @GorkaGames
      @GorkaGames  2 ปีที่แล้ว +1

      Thanks! Hmm, it might be that you didnt set up the anchors correctly on the widget, so the health bar appears off screen, or that after creating the widget you didnt call the "add to viewport" node. But in the other video that you saw he probably changed the player controller because he wants to use hes own specific custom one, but I am using the default PC, which should work, but maybe double check the anchors and the "add to viewport" node 😄

  • @Miauwymiauw
    @Miauwymiauw 7 หลายเดือนก่อน +1

    My ai suddently stops working when i use double jump ability how do i fix this?

  • @lonesamuraiog
    @lonesamuraiog ปีที่แล้ว +3

    For some reason i get one shot by any damage done to my player character and I cant figure it out lol. Ive watch your awesome video 100 times and changed numbers. If I set damage to 0 no damage is done. Switch it to 0.00001 and im dead...

    • @GorkaGames
      @GorkaGames  ปีที่แล้ว +1

      I think I know what it is, make sure that the default variable for health is set to a larger value than 0 by default, in the variables section

    • @eltwinscodm625
      @eltwinscodm625 ปีที่แล้ว +1

      Same

  • @LukGamesCZ-rm3db
    @LukGamesCZ-rm3db ปีที่แล้ว +2

    Please make a tutorial so the horses can eat

  • @niltsor9929
    @niltsor9929 ปีที่แล้ว +1

    Thanks! Only 1 issue here even though I cast to my player character the slider doesn't appear as filled and go down when pressing M , I just know its working by the print debug text

  • @8r3nYT
    @8r3nYT ปีที่แล้ว +1

    Whenever I press to key to apply damage, my character just dies. What can I do to fix this?

  • @alexvega4803
    @alexvega4803 4 หลายเดือนก่อน +7

    so i got the health bar but now i cant move

  • @artemaung5274
    @artemaung5274 4 หลายเดือนก่อน

    You should probably redo tutorial with blueprint interfaces, casting to player character every time from health bar is bad and isn't going to scale.

  • @overtoast1105
    @overtoast1105 ปีที่แล้ว +2

    Great video. I've been watching a lot of unreal videos lately and this is one of the only ones to actually help.
    Clear and concise, thanks!

  • @breakinglimits_mmh
    @breakinglimits_mmh 2 หลายเดือนก่อน

    For your health to go down from hunger would you use your hunger variable instead of a button?

  • @Kaang_OCE
    @Kaang_OCE 3 หลายเดือนก่อน

    Run a normal but my UI doesn't work copied video exactly

  • @dinojakeyt
    @dinojakeyt ปีที่แล้ว +1

    so im on unreal 5, and for eventplay there is already stuff at it, if I delete that it wont move my character, but If I dont the health doesnt appear
    edit: I fixed it, just attach the "Health widge" to the end of Mapping

    • @inzot5198
      @inzot5198 ปีที่แล้ว

      hi just a question how do in do that

    • @dinojakeyt
      @dinojakeyt ปีที่แล้ว

      @@inzot5198 just connect it to the end of the beginplay

    • @TheDinky21
      @TheDinky21 ปีที่แล้ว

      BRO thank you

    • @Bcast666
      @Bcast666 ปีที่แล้ว

      Had the same problem, thanks u 🙏🙏

  • @tohonest
    @tohonest 6 หลายเดือนก่อน

    how do you have 2 event begin play nodes?

  • @keshav_p
    @keshav_p 7 หลายเดือนก่อน

    Subbed! Excellent and short one!. I have one issue, I have 2 trigger boxes, one to subtract and one to add, and if I go to the add one first, then it adds beyond hundred and the subtract one doesn't work till the beyond 100 value comes to 100. Any simple solution for this?

  • @Tommyboi7566
    @Tommyboi7566 ปีที่แล้ว +1

    How would i add a number counter with this?

    • @Tommyboi7566
      @Tommyboi7566 ปีที่แล้ว

      I did it a little i got a overlay and copy and pasted the code from the progress bar and it somewhat works but it says 0.99 and so on when taking damage

  • @happydoggo1235
    @happydoggo1235 ปีที่แล้ว +1

    Hi there, I tried to make this in my game and did (or so I thought) everything you said but the health bar won't appear on my screen. Any Ideas would be much appreciated. Thanks!

    • @GorkaGames
      @GorkaGames  ปีที่แล้ว

      have you placed the anchors correctly?

  • @x4loviGaming
    @x4loviGaming ปีที่แล้ว +1

    But how do i do the same for the AI ? if i copy paste the same code into the AI if i were far away and did press the damage key he will recive damage without my weapon do hit him in the right second of the animation there has to be a hit box i think

    • @GorkaGames
      @GorkaGames  ปีที่แล้ว

      I have actually made a tutorial on how to integrate this with an enemy ai: th-cam.com/video/fp5LbdC4vek/w-d-xo.html

    • @x4loviGaming
      @x4loviGaming ปีที่แล้ว

      @@GorkaGames yeah i saw those but i mean dealing damage is not included for both the AI & The character and there are no video on YT could you do one please or do you have it somewhere for teaching

  • @drk6798
    @drk6798 9 วันที่ผ่านมา

    You're awesome thank you!

  • @ShinJuFreeza
    @ShinJuFreeza หลายเดือนก่อน

    I have a issue here. When I try to make the health bar and want to connect the beginplay to the create health widget, the beginplay is attached to cast player controller. However when i disatach the beginplayer and attach it to create health widget the player doesent move in game. He is just standing there and i cant controll him. However the health bar has appeared. Help.

    • @ShinJuFreeza
      @ShinJuFreeza หลายเดือนก่อน

      OMG!!! Ive somehow fixed the issue by fusing the line for the character movement and the health bar together. And i am totally new to Unreal Engine. Well no help required after all.

  • @97wowplayer
    @97wowplayer 5 วันที่ผ่านมา

    thank you so much

  • @guttobossyt
    @guttobossyt ปีที่แล้ว

    i loved

  • @alisonmiguel432
    @alisonmiguel432 ปีที่แล้ว

    can you help me i did everything correct but i cant get the evento Begin play

  • @TG2mil
    @TG2mil ปีที่แล้ว +1

    I can’t put another Event BeginPlay so what do I do

    • @GorkaGames
      @GorkaGames  ปีที่แล้ว +2

      You will have to go into your current BeginPlay and add a "Sequence" node, and what you curreently have will go through the first conection, and the new stuff in the second connection

  • @-1PokemonGamer
    @-1PokemonGamer 6 หลายเดือนก่อน

    Event any damage does not exist for me

  • @Starzie_
    @Starzie_ 5 หลายเดือนก่อน

    So how do i link the damage to the enemy Ai

  • @Pendif
    @Pendif 3 หลายเดือนก่อน

    i feel like i just waited 10 hours i found this video made it and it works all good then wanted to add a text to make it easier to see how much damage you took only to break the health bar so now i got to go back to a save build and remake it

  • @ZimMabu_GameDev.
    @ZimMabu_GameDev. 10 หลายเดือนก่อน

    You are sucha cool guy i hope you get 1 million follower bro!!!!!! THAAAAAAAAAAAAAAAAAANKKKKK YOUUUUUUUUUUUUUU!!!

  • @milantiquestudios7460
    @milantiquestudios7460 5 หลายเดือนก่อน

    Very nice. Quick and easy to follow. Thanks.
    Now I just need to figure out how to make it so its more like a 3D platformer where bubbles pop or something when the hp lessens

  • @Denny0707
    @Denny0707 2 ปีที่แล้ว +2

    Thank You! Realy useful tutorial :)

    • @GorkaGames
      @GorkaGames  2 ปีที่แล้ว +1

      thanks! I really try to make it simple to follow

  • @Towellie446
    @Towellie446 7 หลายเดือนก่อน

    why do we have to divide health with 100

  • @MAXsystem1
    @MAXsystem1 หลายเดือนก่อน

    بسيط جدا ومحتوى كبير ابداع بجد

  • @fluidexpressions6856
    @fluidexpressions6856 9 หลายเดือนก่อน

    watch his new video 2 hr long video, you can see a more complex health system in that video!

  • @leonard3183
    @leonard3183 หลายเดือนก่อน

    doesn't work for me

  • @xionesj
    @xionesj 2 ปีที่แล้ว +2

    flight system next?

    • @GorkaGames
      @GorkaGames  2 ปีที่แล้ว +1

      👀👀, maybe...

  • @sorgii
    @sorgii 5 หลายเดือนก่อน

    I can’t connect the widget to the “event begin play” because I already that event being used for different code in BP_thirdpersoncharacter. Is there any other way I can do it?

    • @JGAME1.
      @JGAME1. 5 หลายเดือนก่อน

      same problem with u bro

    • @sorgii
      @sorgii 5 หลายเดือนก่อน

      @@JGAME1. I ended up just using a sequencer to get multiple uses out of one event.

    • @Dash-jd3kz
      @Dash-jd3kz 5 หลายเดือนก่อน +1

      @@sorgii sequencer worked thanks buddy

    • @sorgii
      @sorgii 5 หลายเดือนก่อน

      @@Dash-jd3kz glad I could help

  • @ILove-qr6ms
    @ILove-qr6ms ปีที่แล้ว +1

    what's your outro music called?

    • @GorkaGames
      @GorkaGames  ปีที่แล้ว +1

      it is from Artlist.io , I dont exactly remember how it is called, but I will look and inform you

  • @Saravana1311
    @Saravana1311 ปีที่แล้ว +1

    How to add damge from box collision?

    • @GorkaGames
      @GorkaGames  ปีที่แล้ว

      You would basically have a trigger and call the "Apply Damage" event with the damage amount. I do have a tutorial on this! th-cam.com/video/H2I7I8blgn8/w-d-xo.html

  • @romanriley-tb5kc
    @romanriley-tb5kc ปีที่แล้ว +1

    i can no longer move my character can someone set up a time with me to look over my blueprints because I would assume this is not an east fix

    • @GorkaGames
      @GorkaGames  ปีที่แล้ว

      hey man, in which UE version are you?

    • @romanriley-tb5kc
      @romanriley-tb5kc ปีที่แล้ว +1

      @@GorkaGames thx for the reply, im in ue 5.1

    • @GorkaGames
      @GorkaGames  ปีที่แล้ว

      @@romanriley-tb5kc are you using the new enhanced input action?

    • @romanriley-tb5kc
      @romanriley-tb5kc ปีที่แล้ว

      @@GorkaGames im not sure how do i check

    • @romanriley-tb5kc
      @romanriley-tb5kc ปีที่แล้ว

      yes i have it enabled

  • @chriseubank5687
    @chriseubank5687 10 หลายเดือนก่อน

    I love your videos. I just recently switched over to UE5 from Unity and your videos have been really helpful thx.

  • @russianarji
    @russianarji 11 หลายเดือนก่อน

    bro i swear to god, you are a life saver, im getting kinda pissed off because some of the tutorials i saw is trying to be extra adding some unnecessary blueprints and shit, thank you!

  • @7spidersofhh
    @7spidersofhh 9 หลายเดือนก่อน

    ive seen so many of your videos now that the theme is stuck in my head, what song is that?

  • @R4tr0
    @R4tr0 2 ปีที่แล้ว +1

    it doesnt work for me the HPbar is white

    • @GorkaGames
      @GorkaGames  2 ปีที่แล้ว

      did you create a binding and casted correctly to your player?

  • @TheJunkDrawer69
    @TheJunkDrawer69 ปีที่แล้ว

    How can I make a custom hp bar i want to make a customized wheel with three hits to death

  • @diaba4032
    @diaba4032 ปีที่แล้ว

    why u do all things in Player? winjets is spawn in player or gamemode?

  • @unbetable3717
    @unbetable3717 ปีที่แล้ว

    how do i get a number in a hart instead of a slider also cant get the "event beginplay"

  • @putridghastputridghast
    @putridghastputridghast ปีที่แล้ว

    When i go to connect the "event begin play" to the rest of it i cannot control my character because i have to disconnect it and i dont know how to fix please help

  • @wasillashorty
    @wasillashorty ปีที่แล้ว

    Dude, you rock! so many of your videos have helped me on my first serious project!!! you keep it simple, please keep up the AMAZING work!!

  • @anandhusarth1135
    @anandhusarth1135 ปีที่แล้ว

    bro its work only beginning of game but after sometime it's not working 😢
    please reply

  • @dean_read
    @dean_read ปีที่แล้ว +1

    good work you share your video on facebook hah

    • @GorkaGames
      @GorkaGames  ปีที่แล้ว +2

      haha yeah man I also share the tutorials on fb

    • @dean_read
      @dean_read ปีที่แล้ว

      @@GorkaGames thank you

  • @ApocalypsFroid
    @ApocalypsFroid ปีที่แล้ว +1

    hello sr. can you make experience bar to get when kill monster ?

    • @GorkaGames
      @GorkaGames  ปีที่แล้ว +1

      do you mean like a giant boss health bar?

    • @ApocalypsFroid
      @ApocalypsFroid ปีที่แล้ว

      @@GorkaGames yeah that sounds great

  • @xXJAYSANXx
    @xXJAYSANXx 5 หลายเดือนก่อน

    Massive noob here. Been watching your tutorials a lot recently. I actually have a class that requires me to make a basic game and they link us to your youtube videos quite a bit hahah. I just tried following your steps on this video and it all seemed to work fine except the very last part. I cant get a new event begin play, every time i try to drag it in or type it up, it just takes me to the current one that is already in use. I'm using the third person character template and have been building on top of it.
    If you or anyone here has any tips that would be much appreciated. Its probably something super simple but like i said, I'm a noob.

    • @ProjectXthemaking
      @ProjectXthemaking 5 หลายเดือนก่อน +1

      Yeah, i Also met this problem, but fixed it by adding an sequence to the original beginplay

    • @xXJAYSANXx
      @xXJAYSANXx 5 หลายเดือนก่อน

      @@ProjectXthemaking Oh cool ill have to give that a shot, thank you.

  • @galenhegarty6785
    @galenhegarty6785 ปีที่แล้ว

    How do you make it so the character dies?

  • @sellzord6217
    @sellzord6217 10 หลายเดือนก่อน

    Did you delete the original blueprint in BP_ThirdPersonCharacter? I can't connect Event BeginPlay because it is already connected to something else.

    • @saladontoast
      @saladontoast 10 หลายเดือนก่อน

      If you haven't got it yet, you can use the sequence node to connect Event BeginPlay to more than one thing

    • @twotimescreations1888
      @twotimescreations1888 5 หลายเดือนก่อน

      @@saladontoast thank you sir=D

  • @rapenrapen-gj9cw
    @rapenrapen-gj9cw 11 หลายเดือนก่อน +1

    can you help me on how to make this work in multiplayer?

  • @fluidexpressions6856
    @fluidexpressions6856 9 หลายเดือนก่อน

    gorka games is the best tutorial series thank you so much

  • @TüylüBAMYA-v3e
    @TüylüBAMYA-v3e ปีที่แล้ว

    very very great video thank you so much

  • @adamlauben2279
    @adamlauben2279 8 หลายเดือนก่อน

    does this work for enemies?

  • @SurferRadd
    @SurferRadd ปีที่แล้ว +3

    The Hud should control widgets, not PlayerCharacter. Why not do it the way it is supposed to - the Unreal way. Would be more educational as well. Also binding is a tick, so lots of memory go out the window for such a small attribute. No way you are making a full game like this.

    • @GorkaGames
      @GorkaGames  ปีที่แล้ว +4

      Yeah so this is meant to make beginners understand the core elements on what goes on making a simple and flexible health system. I didnt build it to be very optimized as that will complicate beginners and for now my focus is to let them learn the fundamentals on building a system such as this.

    • @GabeGettinRich
      @GabeGettinRich 9 หลายเดือนก่อน +2

      Seems like you don’t understand how tools work.
      Seeing as this began as a game development engine but people used it for virtual production to such an extent they expanded the platform, there is no such thing as the “right way”

    • @sorgii
      @sorgii 5 หลายเดือนก่อน

      What hud?

  • @mishovy1599
    @mishovy1599 ปีที่แล้ว

    very quick and easy to follow. thanks alot

  • @milan12
    @milan12 2 ปีที่แล้ว

    how do i make that other players get the damage, not me

    • @GorkaGames
      @GorkaGames  2 ปีที่แล้ว

      you would need to implement this system in the other players blueprints too and just call the "apply damage" event, I have a combat tutorial series where I touch this: th-cam.com/video/fp5LbdC4vek/w-d-xo.html

  • @devilsplague6666
    @devilsplague6666 2 ปีที่แล้ว

    i got to pressing (m) and nothing lol

    • @GorkaGames
      @GorkaGames  2 ปีที่แล้ว

      That is strange. Did you follow the steps correctly?

    • @devilsplague6666
      @devilsplague6666 2 ปีที่แล้ว

      @@GorkaGames yeah Evan went back thoroughly a few times.

    • @devilsplague6666
      @devilsplague6666 2 ปีที่แล้ว

      @@GorkaGames yep did it 3 times
      and to top[ it off the health bar from ui didnt evan show on screen ha ha ha. fml

    • @devilsplague6666
      @devilsplague6666 2 ปีที่แล้ว +2

      No worries 👍 all done
      Thank you 😊

    • @xRavenousAngelx
      @xRavenousAngelx 2 ปีที่แล้ว

      @@devilsplague6666 what your solution im pressing m but nothing is printing

  • @cpssee
    @cpssee ปีที่แล้ว

    Took a shot at every "umm" and had alcohol poisoning lmao
    Thanks for the tutorial anyway.