So it’s my first game and I am stuck on how to create and incorporate a heart health system into my game. I currently have a number health system (so it shows a 3 then when the player takes damage it minuses 1 off of that and when it reaches zero, then the game ends) and I’ve tried to figure it out myself, and I’m struggling to do it. Can anyone help me?
I’ve added a script called “health” and it makes the hearts change into a different sprite after they are -(ed) from the damage taken but I don’t know how to apply the number system to the image (heart) system.
pls help (I’ve attached all of the scripts that have anything to do with the health)
If he simply needs health in stars, make the health match stars… 5 stars for 5 health… so character health is just 5, not 100 or something like that. Somehow I started to think he wants to convert some arbitrary health value to stars. Although it is relatively easy to show percentage as stars.
Percentage values are better presented by a bar IMHO.
Yeah i agree. When I made my health bar I used a bar to represent 10 points and just went by 10% increments.
OP, if you want to do %, you’ll probably have to end on 1% instead of 0% and each bar is 33%, although I’m pretty sure you’re talking about a 3 lives kinda thing