Do you have any idea to make OnDied() without the invoke, for me invoke seems disadvantages when you lost your script or etc and you have to manually set them back again
It's funny : a few days ago I was doing a review of tutorials on this topic. I thought it's a pity you don't have such a tutorial, and today I get a notification about this video. The universe favors me!
Hi @VodkaMan, exactly as @visitor_t suggested. Instead of changing the FillAmount immediately you could store the current FillAmount and the target FillAmount. Then you could add an Update method and use Lerp or MoveTowards to gradually change the value from the current FillAmount to the desired FillAmount. Hope that helps 😊
Greetings! Thanks for the cool lessons! I came across such an error - when a player dies, the health bar does not decrease completely, the fill amount parameter in the inspector remains at 0.1. Tell me how can I fix it?
Nice tutorials!!! Many thanks!! I do have a question though...how would you do this with C# event Action instead of UnityEvent? I do not like setting events in the editor. I did code only for other events, but the UI update is confusing on where this could be done. Thanks!
Thanks 😊 You could add the HealthController as a SerializeField on the UI script. Then you could subscribe to the event in the Start method. Hope that helps 😊
Do you have any idea to make OnDied() without the invoke, for me invoke seems disadvantages when you lost your script or etc and you have to manually set them back again
It's funny : a few days ago I was doing a review of tutorials on this topic. I thought it's a pity you don't have such a tutorial, and today I get a notification about this video. The universe favors me!
Great to hear, thanks 😊
if the player moves and i have a script that makes the camera follow the player, will the ui move with the camera?
Amazing ketra but I have on question how can we make the health bar smoother?
Hi @VodkaMan, exactly as @visitor_t suggested. Instead of changing the FillAmount immediately you could store the current FillAmount and the target FillAmount. Then you could add an Update method and use Lerp or MoveTowards to gradually change the value from the current FillAmount to the desired FillAmount. Hope that helps 😊
I can't find the square sprite anywhere, even after toggling the packages visibility icon. How do I get it?
when making the project, you need to select URP2D instead of 2D
@@DemonMachine12 dang that duded messed up bad
your right to be honest@@brayneldelrio7044
Greetings! Thanks for the cool lessons! I came across such an error - when a player dies, the health bar does not decrease completely, the fill amount parameter in the inspector remains at 0.1. Tell me how can I fix it?
update the health bar on death
Can we add animations in health Bar and how
Hi, you could use Lerp or MoveTowards to smoothly move the health bar. Hope that helps 😊
ty
👍😊
Nice tutorials thank you guys so much and when will you uploud the new video?
Thanks. New video coming in the next few days 😊
Nice tutorials!!! Many thanks!! I do have a question though...how would you do this with C# event Action instead of UnityEvent? I do not like setting events in the editor. I did code only for other events, but the UI update is confusing on where this could be done. Thanks!
Thanks 😊
You could add the HealthController as a SerializeField on the UI script. Then you could subscribe to the event in the Start method. Hope that helps 😊
👍
👍😊
u sooooo amazing!!!! it is totally true! I love u so much. THX! H&K