HOW TO MAKE A SIMPLE HEALTH BAR IN UNITY! Unity 2D Tutorial

preview_player
Показать описание
In this video I'll show you a quick and simple way to create a HEALTH BAR in Unity!

if there are any tutorials you'd like to see, feel free to leave a comment below!
------------------------------
(no copyright is intended by using this music, all rights go to their respective creators).
------------------------------
Рекомендации по теме
Комментарии
Автор

When i try to run it, it says "The type or namespace name 'image' could not be found. What can I do to fix it?

Snailerino
Автор

Best tutorials are simple and short, giving you a glimpse on how to get started. Thanks for this, other content creators would wrap this in a AAA tutorial which require you to watch it all to find the solution you are looking for.

drmarx
Автор

Thank you so much for the quick tutorial. I'm so surprised how easy it is to make a game.

LumpAbundance
Автор

Straight and simple. And best part is you can use this with your own images (which I did in my case). Thanks!

Sir_Ninonino
Автор

Worked like a charm! Thank you very much

TDog
Автор

Short.. Old.. BUT very very useful video! Thank you for it! <3 (subscribed)

Ferenc-Racz
Автор

0:15 I do not have a "Square" or a "Circle" on the source image selection part. I have the rest of them. How can I get the Square option?

emiarty
Автор

Amazing tutorial saved me hours of video watching!!!!

orileshem
Автор

Thank you for this tutorial but i have a question is how to use this health bar for my player take damage when being attack by enemy?

NoobProMaster
Автор

Nice video but you may want to include
if( healthamount < 100)
{
healthamount = 100;

}
to prevent people gaining ghost health :)

hellopeople
Автор

When I create the "image" component and select square, my health bar doesnt show anything, like if it was invisible. When I create a sprite and try to make it bigger, only the collision box get bigger and not the sprite

eduardomarinho
Автор

how do i reference the takedamage to do actual damage?? from a enemy

imadftatchi
Автор

Thank you I enjoyed this video, I wish you would talk a litte slower and explain a little bit of the "why" on some of the steps just so we could learn more and it would be easier for non native English speakers.

stuartmarsh
Автор

Hi there, @JakeMakesGames, when I do this, right after i make the canvas, these white lines show up, in the middle of the canvas, on the rendering screen. How do we prevent this?

anxy
Автор

It's possibly that I missed something but when I click on source image to select a Sprite, I can't find square. Do I need to download it from somewhere?

eszti
Автор

when I set it to game view the ui doesn't show up, however it does if I set the render mode to world space

RootsOf
Автор

what do i do when it says 'Application' does not contain a definition for 'LoadedLevel'

drmini
Автор

i have stumbled upon a problem. it says that 'float' does not contain definiton for fillAmount on some lines of code in your script. i will be grateful if someone wants to help me

capicoua
Автор

when I press play the Health Amount constantly increases, however, when I disabled the heal part of the script this stopped but I would still want the healing part to work... any ideas?

CSClownCrew
Автор

it says The type or namespace name image could not be found

dtayt