Bro...How come no one on RUclips 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❤️❤️
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!
Idk if you will see this or have solved the problem yet but yes you can you just need to make 2 different sprites for a heart one empty and one full and just use this method
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?
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
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
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() {
Bro...How come no one on RUclips 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❤️❤️
Thank you bro🙏🏻
thank you muchly!! tried several others but always ran into roadblocks.. yours stuff is super easy to follow! works every time :)
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!
Definitely!
Thank you my man👍🏻
THANKS BLAKEY! I finally got it to work.
you are the best develeper
Thank you bro🤟🏻🤟🏻
Phenomenal video bro!
Bro thank you so much, you saved me so many hours
Thanks so much! Great tutorial!
Enjoying
Hi.
Can you shoe how to create items that can be pickued up and increse player health?
on me it says the assosciated script can not be loaded pls fix any compiling errors, but i cant find any errors
Thanks!
How do i make a healthbar but with hearts? Is it the same way?
Idk if you will see this or have solved the problem yet but yes you can you just need to make 2 different sprites for a heart one empty and one full and just use this method
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?
Hey bro, nice to have you here.
Brackeys has a great tutorial on touch input
@@morebblakeyyy okay, I will try, thanks!
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
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
would this tutorial work for 3D as well?
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
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.
Have you clicked on the little Eye icon on the top right in the Image selection?
I have the same issue. Yes I have clicked the Eye theirs just no such thing as a Square apparently lol
For some reason when I add the script to the player, the public floats aren't showing. Do you know why?
nvm I was being dumb and forgot to put a semi colin and the error wasn't showing up
@@monkeboyz-2 bruh
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
I’ll add it to my list👌🏻
why is it when i lose 1 health out of 100 the whole bar disappears?
its out of 1 so set it to 0.3 or smth
Bro I am a beginner and it is horrible to not say that u use a other Version(also in the Infotest)
Hey will that work on unity 3d?
Should do!
@@morebblakeyyy thank you!
@@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
@@blezzeth5283 good stuff🙌🏻
you will need to change the 2d in all the scripts to 3d
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;
}
}
}
there is no public playerhealth
is this working?
yep