Okey so I need help with how to make a health bar that starts out full with green color but then when I lose hp it get's smaller and smaller.
I have now that my hp is 100, and then when I get hit by a bullet from the boss it hurts me 25hp per hit, so need to make a health bar that looses 25 hp everytime I get hit by a bullet.

Recommended Answers

All 2 Replies

Just draw rectangle whose width is proportional to points.

thanks man, way to easy lol feel abit shamed for even asking this question x)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.