Help with energy bars
Hello all! (I am fairly new to game salad so if you have an answer please explain simply) I have a question for you today. How to I create an energy bar for my actor? Ok, so my actor has this roar ability where he sends shockwaves around the screen when I click 'space'. I think they are great but I wanted to create an energy bar so you could use the ability about 6 times before the bar went to nil and you can't roar until you wait for your energy to regain. So far I have made it so the bar has 11 uses and each use it goes down a bit until it reaches 0 and every 3 seconds it goes up 1 bit. It works fine but the problem is that when you leave it for enough time it still keep on getting more uses after the bar is full so when you use it you can use all of the uses you can't see on the bar until the bar starts going down. Also, if I use it to much it goes below the 0 point so even though every 3 seconds the energy goes up a bit I still have to wait a bit until the energy regaining becomes visible. So basically, I would like to make a maximum to the amount of energy regaining and a minimum. Any help would be greatly appreciated.
Cheers
Cheers
Comments
for example:
max(0,min(YOUR.ATRIBUTTE*HERE YOU HAVE TO PUT THE SIZE OF YOUR BAR SPLIT BETWEEN MAXIMUM OF PUNCTUATION THAT HAS A BAR))
sorry for my english
★ My Apps | Gamesalad Tutorials : Youtube Channel , Website. ★
http://www.deepblueapps.com/health-bars-and-bonus-score-templates/
Darren.