Unity Player Health and Health bar Tutorial

  Рет қаралды 15,308

MoreBBlakeyyy

MoreBBlakeyyy

Күн бұрын

Enjoy the tutorial and subscribe to the channel for more videos :)
Intro 00:00
Scene Overview 00:15
Player Health Script: 00:47
Creating the Health Bar: 01:28
Player Health Script PT 2: 03:13
Damaging Player health: 04:47
Different Ways Of Accessing Player Health: 08:13
Main Channel: / bblakeyyy
Patreon with fully explained c# scripts:
/ blakeygames
DISCORD SERVER LINK: / discord
Silhouette Dash free download:
blakey-games.itch.io/silhouet...
Join the discord community!:
/ discord
Play my games! :
blakey-games.itch.io/
play.google.com/store/apps/de...
Watch me Live on twitch: / bblakeyyy
My Website!: bblakeygames.wixsite.com/blak... Audio used in my videos:
♪ Onion (Prod. by Lukrembo)
Link : • (no copyright music) l...
♪ Branch (Prod. by Lukrembo)
Link : • (no copyright music) c...
♪ Biscuit (Prod. by Lukrembo)
Link : • (no copyright music) l...
♪ Bread (Prod. by Lukrembo)
Link : • (no copyright music) j...

Пікірлер: 41
@t.b.g158
@t.b.g158 2 жыл бұрын
Bro...How come no one on KZbin explain Unity Tutorials as simple as you!? I literally found you by an accident while looking through a million video on how to move my character in a platformer way! I can't believe i will witness a great channel like yours grow slowly from the start I already know how to make a health bar...But i really should have waited for you it's Alot leas complicated your way Edit:I have just realized the 360 Slide from your video thx so much pro❤️❤️
@morebblakeyyy
@morebblakeyyy 2 жыл бұрын
Thank you bro🙏🏻
@cheery-hex
@cheery-hex Жыл бұрын
thank you muchly!! tried several others but always ran into roadblocks.. yours stuff is super easy to follow! works every time :)
@ftdtxiace5829
@ftdtxiace5829 Жыл бұрын
THANKS BLAKEY! I finally got it to work.
@angiebui2887
@angiebui2887 2 ай бұрын
Thanks so much! Great tutorial!
@donutercz
@donutercz 11 ай бұрын
Bro thank you so much, you saved me so many hours
@bluaurax
@bluaurax Ай бұрын
Phenomenal video bro!
@MintyPeets
@MintyPeets 2 жыл бұрын
1:53 that would have been so usefull back when i made games with unity! i used to spend so much time adjusting the position of my menu buttons and then having to test it out and again and again xD very nice tutorial dude!
@morebblakeyyy
@morebblakeyyy 2 жыл бұрын
Definitely! Thank you my man👍🏻
@dandidan123
@dandidan123 2 жыл бұрын
you are the best develeper
@morebblakeyyy
@morebblakeyyy 2 жыл бұрын
Thank you bro🤟🏻🤟🏻
@TheTerspet
@TheTerspet Жыл бұрын
hey man, sometimes when my player character dies and respawns, the healthbar wont update and (in my case) stays black instead of getting back to full red, health system in inspector that heal is back to full but the healthbar stays black until i get hit again or healmyself up, is there a way to fix this issue? also sorry if i couldnt explain better, its my first time working on a project by myself
@vaaron8524
@vaaron8524 Жыл бұрын
I made a healing program from this demage program and I would like to ask how can I prevent the max health from being more than 100? Thanks in advance
@jonnassonnas
@jonnassonnas 11 ай бұрын
How do i make a healthbar but with hearts? Is it the same way?
@eymendeveci
@eymendeveci 11 ай бұрын
Hello, my camera is attached to my player because i want it to follow my player, but technically if my player gets destroyed, the camera will be gone too and it gives an error, can you tell me what to do please, already thanks
@syfenw6586
@syfenw6586 10 ай бұрын
on me it says the assosciated script can not be loaded pls fix any compiling errors, but i cant find any errors
@ilypavan
@ilypavan 11 ай бұрын
Enjoying
@galberger3937
@galberger3937 3 ай бұрын
Hi. Can you shoe how to create items that can be pickued up and increse player health?
@TheBeefwacker
@TheBeefwacker 3 ай бұрын
why is it when i lose 1 health out of 100 the whole bar disappears?
@monkeboyz-2
@monkeboyz-2 Жыл бұрын
For some reason when I add the script to the player, the public floats aren't showing. Do you know why?
@monkeboyz-2
@monkeboyz-2 Жыл бұрын
nvm I was being dumb and forgot to put a semi colin and the error wasn't showing up
@charithsenanayakerathi9533
@charithsenanayakerathi9533 2 жыл бұрын
Hey bro, I am a beginner to unity, so I have a problem How do I use touch input when we make a mobile game? That means for example if I want the player to jump when I touch the screen. How do I do that?
@morebblakeyyy
@morebblakeyyy 2 жыл бұрын
Hey bro, nice to have you here. Brackeys has a great tutorial on touch input
@charithsenanayakerathi9533
@charithsenanayakerathi9533 2 жыл бұрын
@@morebblakeyyy okay, I will try, thanks!
@merekbrent8081
@merekbrent8081 3 ай бұрын
There was no plain square asset for unity and the health bar is all there but when I load in it does not pup up.
@miskasstories8035
@miskasstories8035 Ай бұрын
Have you clicked on the little Eye icon on the top right in the Image selection?
@AgentX-ye8sh
@AgentX-ye8sh Ай бұрын
I have the same issue. Yes I have clicked the Eye theirs just no such thing as a Square apparently lol
@t.b.g158
@t.b.g158 2 жыл бұрын
Bro can you make a tutorial about how to dash and make a Pulse wave that pushes away enemies? Trying to find a simple one and can't
@morebblakeyyy
@morebblakeyyy 2 жыл бұрын
I’ll add it to my list👌🏻
@consta_mode2202
@consta_mode2202 2 жыл бұрын
Bro I am a beginner and it is horrible to not say that u use a other Version(also in the Infotest)
@user-nr2ws1we4i
@user-nr2ws1we4i 8 ай бұрын
@blezzeth5283
@blezzeth5283 Жыл бұрын
Hey will that work on unity 3d?
@morebblakeyyy
@morebblakeyyy Жыл бұрын
Should do!
@blezzeth5283
@blezzeth5283 Жыл бұрын
@@morebblakeyyy thank you!
@blezzeth5283
@blezzeth5283 Жыл бұрын
@@morebblakeyyy you're the goat brother, it worked perfectly fine, now I just have to make my game over screen work and make some physics haha
@morebblakeyyy
@morebblakeyyy Жыл бұрын
@@blezzeth5283 good stuff🙌🏻
@raviensermo3103
@raviensermo3103 2 ай бұрын
you will need to change the 2d in all the scripts to 3d
@raviensermo3103
@raviensermo3103 2 ай бұрын
this is my script: but it doesnt work public class DamageScript : MonoBehaviour { public float damage; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } private void OnCollisionEnter2D(Collision2D other) { if (other.gameObject.CompareTag("Player")) { other.gameObject.GetComponent().health -= damage; } } }
@smulched
@smulched Ай бұрын
there is no public playerhealth
@niuka8688
@niuka8688 Жыл бұрын
is this working?
@morebblakeyyy
@morebblakeyyy Жыл бұрын
yep
How to make a HEALTH BAR in Unity!
21:06
Brackeys
Рет қаралды 1,1 МЛН
The Martians Come to Kill Me in Hardcore | 100 Hours
24:13
Throarbin
Рет қаралды 16 М.
[柴犬ASMR]曼玉Manyu&小白Bai 毛发护理Spa asmr
01:00
是曼玉不是鳗鱼
Рет қаралды 47 МЛН
it takes two to tango 💃🏻🕺🏻
00:18
Zach King
Рет қаралды 29 МЛН
1 класс vs 11 класс (неаккуратность)
01:00
БЕРТ
Рет қаралды 4,5 МЛН
Game Over Screen Unity Tutorial
14:35
MoreBBlakeyyy
Рет қаралды 37 М.
Infiltrating Roblox’s Fake Middleman Scam
18:57
No Text To Speech
Рет қаралды 189 М.
How to make particles follow a path! #unity #gamedev #vfx #gaming
1:01
Gabriel Aguiar Prod.
Рет қаралды 13 М.
Unity 2D Player Move and Jump with Groundcheck Tutorial
11:13
MoreBBlakeyyy
Рет қаралды 43 М.
Ragdoll in UNITY | Game Development
0:46
BudGames
Рет қаралды 30 М.
Beginner Blender 4.0 Tutorial - Part 2: Basic Modelling
18:39
Blender Guru
Рет қаралды 1,4 МЛН
How Hollow Knight Was Made and First Appeared on Newgrounds
22:57
ThatGuyGlen
Рет қаралды 796 М.
How to make Bomberman in Unity (Complete Tutorial) 💣💥
2:20:49
How much MONEY my Game made (and how much it cost!)
14:00
Code Monkey
Рет қаралды 152 М.
Пьяный дед продал внука в Roblox! 😱 @titwow
0:28
Do You Want The Baby Frog To Get The Food? #shorts
0:46
ZolphiusFun
Рет қаралды 24 МЛН
Caseoh VS Sonic & Aphmau | Minecraft & Sonic
0:12
Mischief time
Рет қаралды 12 МЛН
Please Help Steve In Lava Pit Challenge
0:31
ToonToon Daily
Рет қаралды 10 МЛН
Caseoh VS Sonic & Aphmau | Minecraft & Sonic
0:12
Mischief time
Рет қаралды 12 МЛН