Easy Heart Health System in Unity

preview_player
Показать описание
I see a lot of Heart Systems that don't focus on how to handle half or quarter hearts. In this Unity Tutorial learn how to have a dynamic heart health system in just 2 scripts.

This is a health system used in games like The Legend of Zelda. Other buzzwords that will make youtube rank my video higher. Buzzword buzz word, synnergy,

✨Want to support the channel?

➤SUBSCRIBE to win a secret prize one day unexpectedly maybe

➤LIKE the video if you enjoyed, it really helps the channel!

Thanks for watching!

#unity #tutorial #bmo
Рекомендации по теме
Комментарии
Автор

This is like the reincarnation of Brackeys... easy to understand, follow and build upon. Thank you!

opxv
Автор

I watch a lot of gamedev channels on youtube and I can say that there aren't a lot of (maybe 1 or 2. There was Brackey but he quit...) those that give these clear, understandable, easy to follow and great small videos! I have been searching a while for this before you popped up on my feed!

xavvey
Автор

So easy to understand. I spent all day trying to get my health system to work. Watched many different videos. Tried my own ideas. Then I found this! Thank you so much. Now, I can get on with the rest of my game.

kristinewestman
Автор

Bmo videos have single handedly dropped my cholesterol and now my heart is healthy ❤️

mandamoon
Автор

I'm finding your videos really helpful, they inspired me to start learning more about unity and start making my first game so thanks for the work!!

emsaik
Автор

Thanks! I need to get more familiar with those layout groups. They seem very useful for getting buttons and such in a nice neat order.

suicune
Автор

Thank you for the clear tutorial and explanation
Much appreciated

eileeng
Автор

Bro very much thank you I literally was stuck on this problem for 3 days

DivyanshuLohani
Автор

fucking hell i just spoke to a mate about how to add health system and boom 10 minutes later this video recommended on home page
but great video and thanks

Overlord-vmgm
Автор

Can you please do a tutorial on how to do 2 players with one keyboard. (WASD)(Arrow Keys) This would be very helpful to me and probably a lot of other people because there is not another 2d 2 player video with gravity. Thanks. BTW love the vids, subbed

vvcephie
Автор

can you explain a liittle bit of this OnPlayerDamaged event ?
because i only using
health = health - 1
every time it taking damage

adimortal
Автор

So what would we do if we wanted each heart to only be one health

wortwortwort
Автор

Hi this video is really helpfull but I managed to run into an issue anyways. When I start my game all hearts are there but empty. As soon as my Player takes damage all hearts fill excapt of that what I lost. So now everything is working properly again. Can u help me...?

antonmayer
Автор

Hey, I have ran into a problem with the script for the health bar. I have done everything you stated to do (even changing some numbers to make the UI work in my favour) and for some reason the hearts just don't want to change sprites.

I am trying to do a quarter health system (minimum of 0, maximum of 4) and whenever I tried to change the health of the player the sprites for the hearts would never change, they would always be full.

I am honestly scratching my head on this one and I can't find a solution to this problem, really want to learn how to do this health system as it would help immensely in a project I'm working on and would help me in the future on other projects.

puffosgamingoldchannel
Автор

Anybody know my it won't let me assign my player to the player health

Tonesko
Автор

My hearts dont update when im damaged? everything else works and i get the console meesage that i have died but the hearts dont change?

NothingburgerOnG
Автор

help, why does it rests 2 hp (a whole heart) if i did set "takedamage 1"?, my game has 20hp, 10 hearts, i can't find why :(

yojan
Автор

Why not just make the hearts a mask for a variable length health bar underneath? Then you can have any fraction at a whim and even animate it draining down without additional sprite graphics.

weckar
Автор

I ran into scaling issues after following the guide. Everything works correctly except every time a new prefab is instantiated the scaling was set to 45, 45, 45 and the heart would basically be huge af. To fix that I had to set the scaling in the code. under CreateEmptyHeart method I just added one line: newHeart.transform.localSacle = new Vector3(1, 1, 0) this should fix the problem if you run it to it as well. It could be because I used a random heart image from google. !

MaizaMriza
Автор

I had default settings, yet somehow my hearts are placed from top to bottom instead of left to right. Do you have any ideea why?

danielduduleanu