Hi, I'm making an energy bar in my game and I'm having problems. Here's what I'm trying to do:
There are 3 variables I'm working with, Energy (your current energy) Maxenergy (your maximum amount of energy) and Energycap, a cap within your energybar which goes down slowly over time, and which your energy cannot surpass. You can restore your energy by resting, but to restore your energy cap to full you must sleep.
The problem is simply a visual one in the Hud. As you'll see in the .cap file, the energycap goes down properly, but the energybar goes up when it should be at the same level as the energy cap.
Here's my .cap file: [url:3p0jywc7]http://www.mediafire.com/?ndqnf89pm6xpbua[/url:3p0jywc7]
The events associated with the energybar are under the "hud" comment.