Energy bar woes

For questions about using Classic.

Post » Wed Jan 12, 2011 2:14 am

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.
B
3
S
1
G
3
Posts: 105
Reputation: 1,312

Post » Wed Jan 12, 2011 7:28 am

Never mind, I got it working.
B
3
S
1
G
3
Posts: 105
Reputation: 1,312


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests