How do I make my character and enemy Healthbar move when either or are taking damage.

Im trying to figure how to make it so when my character or the enemy takes damage that they dont die instantly and they have a health bar that updates everytime they take damage I have been looking everwhere for guides but havent found anything good that would really help that I can understand.

Hello Tysmaker,

My recommendation would be to use a world space canvas (create a canvas then click on render mode and and click on world space) that is a child of your characters or enemy’s, and use a raw image that reduces in size in relation to the amount of health of the enemy.

Or you could use UiText and change the text inside of it in relation to the health of the enemy.

All the best, tiggy02.