How to Make a 3D Health Bar for your Enemy in Unreal Engine 5

Поділитися
Вставка
  • Опубліковано 18 лис 2024

КОМЕНТАРІ • 62

  • @thronzgamerz507
    @thronzgamerz507 Рік тому +23

    MAN U ARE A LEGEND U UPLOAD EVERYDAY SO U CAN TEACH US HOW TO LEARN GAME DEVELOPMENT YOUR VIDEOS ARE REALLY HELPING ME AND I REALLY GREATEFUL TO YOU THAT YOU ARE UPLOADING VIDEOS AND ALSO WAITING FOR YOUR BLENDER SERIES SO I CAN LEARN MODELLING

    • @GorkaGames
      @GorkaGames  Рік тому +5

      Thank you so much! I love helping others make their dream games

    • @nirmalroyalrich9304
      @nirmalroyalrich9304 Рік тому +2

      I recently found out about this channel, and its great learnt a lot but WHY ARE YOU SHOUTING THO!!!

  • @warchiefsurvives
    @warchiefsurvives 8 місяців тому +2

    DUDE!! You are the MAN!! I watched 4 videos on this that were 3 times as long as yours and NOBODY explained it as well as you....nor did there way work...I watched YOUR video and in 5 min's it is working PERFECTLY!! Thank you SO MUCH!!

  • @1d33f1x3
    @1d33f1x3 2 місяці тому

    Helpful tutorial, thank you! For anyone complaining about or wondering about the event tick - collapse the rotate portion to a function and then use "Set Timer by Function Name" to control how often it fires.

  • @FPChris
    @FPChris Рік тому +1

    I love how in AC: Odyssey when you aim a bow at an enemy you get a preview of how much damage the hit will do so you know if a headshot will kill the enemy or not.

  • @jun3jun3
    @jun3jun3 Рік тому +16

    event tick casting, lmao

    • @tldmbruno
      @tldmbruno Рік тому +5

      I saw that too, WHYYY

    • @arnerademacker
      @arnerademacker 9 місяців тому +1

      Jo but don't just lmao. Where and when in the video and why is it bad?

    • @undisclosedlocations
      @undisclosedlocations 6 місяців тому +4

      @@arnerademacker "Event Tick" does the action every tick. There's 60 ticks in a second. It's very bad for performance

    • @arnerademacker
      @arnerademacker 6 місяців тому +1

      @@undisclosedlocations Well, yes, but you have to wire it up to a fast update cycle. I'm assuming the casting is the slow part?

    • @bachson4440
      @bachson4440 4 місяці тому

      everything seem okay , except event tick casting :v

  • @Xtynger
    @Xtynger 21 день тому

    Awesome as usual, thanks man

  • @sauravbhagat4150
    @sauravbhagat4150 Місяць тому

    Thanks Simple and effective!

  • @pterafier
    @pterafier Рік тому

    Thanks for so many good tutorials! Was a pleasure seeing you in Black Thorn Prods video :)

  • @sideeffectstudios7236
    @sideeffectstudios7236 7 місяців тому

    Your Videos have never failed me yet.. Keep up the good work 🎉

  • @SqueegeeDinoToy
    @SqueegeeDinoToy 10 місяців тому

    Thank you for this mate. Tried like 5 different other tuts but they all breezed past very small details that were crucial. Great tut!

  • @nothingspeaks
    @nothingspeaks Рік тому

    FANTASTIC tutorial dude if i could like it a million times i would!!!

  • @sanketvaria9734
    @sanketvaria9734 Рік тому

    If you look at games like sekiro, horizon, darksouls then most of the games pretty much use screen space. SO it's fine even if it goes over your character. the trick here is to make it look small enough to not hinder the view of everything yet be noticeable enough to know enemy health.

  • @azurongrayson2448
    @azurongrayson2448 Місяць тому

    thank you this was helpful. For me actually, it was disappearing again. So after like an hour of debugging, I realized that I had flipped the Start and Target pins by mistake....

  • @ivelinivanov3414
    @ivelinivanov3414 Рік тому +1

    Thanks bro, I made this work using your tutorial!

  • @Kaikof_
    @Kaikof_ 10 місяців тому

    Nice tutorial, thanks man

  • @TheJesusjones
    @TheJesusjones Рік тому +3

    How would you handle the rotation of the health bar in a multiplayer situation? Great videos by the way, I've become a big fan and look forward to each time you post.

    • @showermj
      @showermj Рік тому

      same question

    • @christopherbell4021
      @christopherbell4021 7 місяців тому

      This is proabably likely something that would be handled entirely client side

  • @FPChris
    @FPChris Рік тому

    Thanks. Very clear and straight to it.

  • @DailyPaily
    @DailyPaily Рік тому +3

    Aqui te tengo que echar la bronca Gorka, ya sabes porque, casteas y encima en un tick !

  • @Foharo
    @Foharo 9 місяців тому

    U ARE AMAZING, INCREDIBLE, THANKS TOOOOOO MUCH. U HELPED ME A LOT
    i'm brazilian sorry to my bad english XD

  • @__Mute__
    @__Mute__ 2 місяці тому

    thanks a lot!

  • @TheRealMawks
    @TheRealMawks 5 місяців тому

    Hello Gorka, I appreciate your work a lot and the format you chose, which is quite fast and straightforward compared to other content creators.
    Would you mind to explain how to make the Health bar rotation adapted to a top-down game ? Maybe make a video about it so I am not the only one who can benefit from your knowledge. I followed the exact steps you explained and it is not adapted to a top-down game.
    The last part of your video starting from 5:25 is quite hard to understand for a complete beginner, thus I struggle to find the solution myself.

  • @elnurmehdiyev5062
    @elnurmehdiyev5062 6 місяців тому

    Cool tutorial bro!

  • @keithfermin8144
    @keithfermin8144 Рік тому +5

    Does anyone know how to disable the shadow from this widget?

    • @diepxuanhuy
      @diepxuanhuy 11 місяців тому +1

      i also need this

    • @alexmine9024
      @alexmine9024 11 місяців тому +2

      Hey man, i know this is a late answer but maybe it still helps...in your Enemy Blueprint you can easily use "Event Begin Play" --> "Set Cast Shadows" .... the target is of course your HealthBar Component :)

  • @dorondavid4698
    @dorondavid4698 10 місяців тому +3

    Just a note to people watching this; use this as a reference ONLY.
    Casting is very expensive in unreal, and event tick is done very very very often, so you'll kill the performance of anything you create.
    Instead, make a method that will set the percentage of the health bar, and call it from wherever you need to.

    • @yokoshi1
      @yokoshi1 9 місяців тому

      yeah, that's how i got mine set up, only thing is, I wish to change it to have the health bar show constantly. I might just set it to visible upon taking damage instead of having it visible all the time. though im keeping this video in my favorites just incase I decide otherwise.

    • @dorondavid4698
      @dorondavid4698 9 місяців тому

      @@yokoshi1 the visibility of the widget isn't the issue, it's having too many things being called with onTick

    • @yokoshi1
      @yokoshi1 9 місяців тому +1

      @@dorondavid4698 I see I see. Im still learning : ) so thanks for clarifying that

    • @dorondavid4698
      @dorondavid4698 9 місяців тому

      @@yokoshi1 no problem! I'm still learning as well, unreal is a very complex engine

    • @michaelabdel-nour6203
      @michaelabdel-nour6203 4 місяці тому

      @@dorondavid4698 but if i wanted it to show the health bar all the time and i made a function that works, when do i call it instead of at event tick? i know its bad to do event tick and casting but im stuck

  • @ZimMabu_GameDev.
    @ZimMabu_GameDev. 11 місяців тому

    Thanks bro

  • @xcryosonx
    @xcryosonx 6 місяців тому

    Was there a part in this where you cover how to make this health bar only apply to a single enemy instance?
    I figured just setting the health to be instance editable would be enough, but if I have a dupe of that enemy in my level and I attack it, the health bar on both of them goes down.

  • @coffincolors_
    @coffincolors_ 10 місяців тому

    Thank you for your excellent tutorials my friend. I've followed you guide but my widgets are not facing the camera when I add them to my NPC. They turn with the actor. I tried setting Interface to Screen instead of World, but that seems different then how you've been able to do it. Any idea what I did wrong?

  • @ДинарВасильев
    @ДинарВасильев Рік тому

    Thank you for the lessons! Just why doesn't the widget work in a game with a top view? The widget does not look at the camera...

  • @foxy3dworld994
    @foxy3dworld994 Рік тому

    Hello, quick question so am making an IA companion and i want it to have a health and damage system too. I want to do the same things but without adding the widget above the character... how do i go about it? 😊

  • @varadus9151
    @varadus9151 Рік тому

    You just earned a sub, the trick with look at rotation was amazing thank you!

  • @RSProduxx
    @RSProduxx Рік тому +1

    Gracias :)

  • @zaka45
    @zaka45 Рік тому +1

    NICE!

  • @ortegask1598
    @ortegask1598 6 місяців тому

    how you would do it if you will have two characters??

  • @wildricknarcissot6031
    @wildricknarcissot6031 Рік тому

    Gorka you are a beast 🙌 Thanks for all your tutorial, they are so cool, love the relax music in the background, keep it up my man 😉👍💯

  • @MartinCraster
    @MartinCraster 9 місяців тому

    I tried this using the FPS level and for some reason the World Rotation doesn't work

  • @TegridyMadeGames
    @TegridyMadeGames 6 місяців тому

    any idea how to disable the shadow??

    • @TegridyMadeGames
      @TegridyMadeGames 6 місяців тому

      nvm, take the widget component that was added to character and then set cast shadow in blueprints graph:)

  • @ducanger
    @ducanger Рік тому

    How do groom hair follow mesh (not follow bone) from blender to ue5,bro ?

  • @thiccchanka2752
    @thiccchanka2752 3 місяці тому

    You are casting in tick WTF?

  • @wertolotik
    @wertolotik Рік тому

    3:40 дальше после этого можно выключать, человек вообще не понимает что делает....