I am learning C++ at the same as I am programming a simple game. I am stuck on programming the health bar. I want it to decay over time, only to be increased by using a heal pot.
I thought it would be simple, which I still think it probably is, but what is the best way to go about doing this?
I thought it would be simple, which I still think it probably is, but what is the best way to go about doing this?