Health Bar/Damage

Hey playcanvas team, is it possible for you to provide me a link to take damage and the health bar goes away if you get hit and die? On tutorials? We have the dead thing for health bar when you die and also the health bar (edited)

Hi @Gabriel_Dobrzynski,

Not sure what you have and what you are missing, so for a health bar here is a progress bar example:

https://developer.playcanvas.com/en/tutorials/ui-elements-progress/

When your player takes damage you can decrease the bar active value and eventually disable it to hide it.

1 Like