Комментарии:
hey i know im 2 years late but what is a health component
ОтветитьHow would you do it if the death animation transition is in any state? And there is a parameter that Health If reaches zero, it should trigger the death animation? In a 3D game. I'm stuck at coding for health
Ответитьplayers current health does reset between playtests (and keeps last playtest value). but when the player get hit the value of currentHealth goes back to last playtest. any ideas?
Ответитьim getting null refence error on collision
Ответитьwhat is the healthComponent though
Ответить3 🍍
ОтветитьCan i get Farcry or Tarkov style healing system?
It would be really cool you know.
i typed out everything you did but it says that the comands i typed out are out dated. what do i do
Ответитьit doesnt show the max health and current health below the script even though i entered it properly
Ответитьhad a streak for about 1 year... thy.
u lost!
Not sure why, but my health bar goes down when I manually change my current health in the inspector. However, when using the OnTriggerEnter2D method the current health value still goes down, but the health bar image doesn’t actually change. Anyone know why this might be?
ОтветитьThank you so much! this was the only tutorial video for health system that would work thank you for making this video it helped me so much and saved alot of tears
ОтветитьSomething I've tried is not creating add and subtract methods. All methods are additive, the values can be negative.
ОтветитьSo I have a TakeDamage() function just like yours. At the moment I'm using this function to scale down my Fill (health bar UI image). I also have four different GameObjects, each with a Collider, and an OnMouseDown function which returns { this.Collider.isTrigger = true; }. Let's say that I want all four GameObjects to be clicked (in my case, since the game's a mobile game, touched) and after they're clicked, apply TakeDamage(). So I have created another script and attached it to an empty game object, and in it, I called all the GameObject.Colliders.isTrigger and put them in an If() statement like this:
public void FixedUpdate()
{
if(GameObject1.Colliders.isTrigger && GameObject2.Colliders.isTrigger ... == true)
{
TakeDamage(20);
}
}
but whenever I run the program, instead of reducing only 20 from health, and show currentHealth as 80, it completely reduces the currentHealth down to 0!
Basically, TakeDamage Works, if I'm using an If statement with a parameter of input.KeyDown function in Update, but if I use a bool in the If statment's parameter (like the example above), it doesn't work as it is supposed to.
Can you help me?
THANK YOU
Ответитьlol
Ответитьjust came here from watching a video on the same subject by a 250k sub channel..... yours was better by a large margin. You actually explained what you're doing and i appreciate that. Thanks!
ОтветитьMy health bar doesn’t show up when i press play? I have a main menu too. Help?
ОтветитьCan you make a video on how to make a stamina bar?
Ответитьyour video is very Easy to understand
so I wish there were Korean subtitles. cuz im korean
Best prequel
ОтветитьSimple and easy. Excellent tutorial!
ОтветитьGreat,but all of you with knowlege saying just like that,its simple like that or somthing...That word"JUST" It hurts,for complete beginers like me,nothing is not "JUST" NObody is born with knowlege... but compare to others you r sooo cool and i thank you for this tutorial...thanks
ОтветитьI get an error that says: ‘Health.TakeDamage(int)’ is inaccessible due to its protection level. Why is this?
Edit: I fixed this by changing the void takedamage to public
That was so quick and awesone ACTUALLY ! I was looking for simple health system for so long and this showedup. :'''''') Thank you .You are a life saver.Good luck and bring us thanos just kidding.Bring us more videos like this <3
Ответитьwhat extension did you use for untiy game on vscode?
ОтветитьWhy do the arrows kill him if he's wearing full plate
ОтветитьPlease do respawn
ОтветитьBetter hope I'm not around when you only have one pineapple left ⚰
ОтветитьYour videos are so fast but so descriptive. You don't just use "code talk" you explain it in lamens terms. All the meanwhile, making the tutorials about 2-3x shorter than your average Brackeyes tutorial.
Keep it up, amazing videos! They help me a ton!
What happened, Bmo? 3 pineapples max? Shame
Great vid btw
3 pineapples a day keeps the doctor away ;) I understand health now!
ОтветитьGreat!
Examples so good!
I died... laughing! 😂
ОтветитьThat intro, I now want some pineapple.. and health care. More importantly pineapple though lol. Solid tutorial BMo!
ОтветитьI like your explanation man, very entertaining
ОтветитьWould there be a tweak in the script if I wanted a segmented health bar? Or would that all be done through the editor and art program (photoshop)?
ОтветитьYes! I could not find this in a Brackeys tutorial
ОтветитьPineapple 🍍😂 what an example 😂😂
Ответитьfirst
ОтветитьGreat video 👍
Ответить