I'm making a 2d platformer with a health bar. The health bar normally follows the top of the viewport correctly, but when I die I come to the main menu, back to the game and only then I can't see my health bar. Any ideas on how to fix this? Thank you.
Develop games in your browser. Powerful, performant & highly capable.
So the health bar works
I would say that probably you have coded that the health bar destroys once the health is at 0
so could you post a screenshot of what the coding for the health bar is?