How do I…
Hello, I am trying to make a HP counter for my shooter game. It’s not an HP bar, but more of a Resource Units HP counter. In my game, you can add more to your max health to become stronger. I made it so you can interact with a placeholder object to use your score points to “buy” more max health. If you buy the max health, an extra heart is added to your counter, and if you lose that life, it has an “empty” sprite for that singular heart. Like if it was always that way!
What is the expected result
If I buy more max health, a new heart and heart background are added to my health counter. If I should get hurt, my heart dissapears, but the background empty sprite of that heart remains there. When a heart is added, it goes right next to the previous one, making a single file. The first heart stays at the same position, so the hearts stay at the left-top most part of the screen.
What is the actual result
Joe-ever, if I add more max health, the health counters move to the right to “become centered”??? The borders and empty sprite of the hearts are not added, and if you lose a heart, it dissapears like if it was never there.
How it looks like at first
The hearts going crazy after I add more max health