* May 24, 2013, 02:47:06 AM
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Come Chat with us live! Learn how HERE!
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Percentage of Energy?  (Read 1247 times)
OhaiReapd
Spam Killer
*

Turrets: +7/-239
Posts: 942


« on: October 13, 2010, 08:50:21 PM »

I'm making a hud, and I would like to put a percentage of how much energy is left. This is for GPP and could you give me the code for it? Cheesy

Thanks

~Reapd
Logged

Plague Bringer


Turrets: +147/-187
Posts: 3811


« Reply #1 on: October 19, 2010, 02:40:45 PM »

Check the GPP HUD and look at the charge bars.
Logged

U R A Q T
OhaiReapd
Spam Killer
*

Turrets: +7/-239
Posts: 942


« Reply #2 on: October 20, 2010, 03:57:21 AM »

Check the GPP HUD and look at the charge bars.

The standard one? Hmmm.
Logged

Plague Bringer


Turrets: +147/-187
Posts: 3811


« Reply #3 on: October 20, 2010, 02:32:17 PM »

Check the GPP HUD and look at the charge bars.

The standard one? Hmmm.
Any of 'em.

It'll either go by % of charge or increase with the time the button is held. You could inverse that, to have a bar decrease with the time held.
Logged

U R A Q T
F50


Turrets: +16/-26
Posts: 740


« Reply #4 on: October 21, 2010, 03:27:32 AM »

Actually Plague Bringer, the standard charge bar (for Lucifer cannon, pounce etc.) uses its own special functions to determine its progress, among other things. Its not really a HUD thing.
Logged

"Any sufficiently advanced stupidity is indistinguishable from malice." -- Grey's Law

OhaiReapd
Spam Killer
*

Turrets: +7/-239
Posts: 942


« Reply #5 on: October 21, 2010, 11:14:03 AM »

Actually Plague Bringer, the standard charge bar (for Lucifer cannon, pounce etc.) uses its own special functions to determine its progress, among other things. Its not really a HUD thing.


So it has to be coded in.
Logged

Plague Bringer


Turrets: +147/-187
Posts: 3811


« Reply #6 on: October 21, 2010, 04:44:27 PM »

Actually Plague Bringer, the standard charge bar (for Lucifer cannon, pounce etc.) uses its own special functions to determine its progress, among other things. Its not really a HUD thing.
In that case I'd assume that there's either no way to integrate a % bar directly into the HUD or it's too difficult or time consuming to do.


EDIT:
Do sections of the HUD have variable alphas? Can you arrange a few boxes and have them fade out one-by-one as stamina goes down?
Logged

U R A Q T
Demolution


Turrets: +157/-64
Posts: 1198


« Reply #7 on: October 21, 2010, 07:12:19 PM »

If you can do it with ammo clips, why not with stamina?
Logged


Clan [AC] - For all your air conditioning needs please visit: http://s1.zetaboards.com/AC_NoS/index/
my brain > your brain.
and i am VERY stupid.
CreatureofHell


Turrets: +429/-123
Posts: 2351

Ash Nazg Durbatulūk, Ash Nazg Gimbatul.


WWW
« Reply #8 on: October 21, 2010, 07:57:28 PM »

If you can do it with ammo clips, why not with stamina?

At a random guess, not knowing anything here, I would say the ammo clips are just bars made up of a number of rectangles and are decreased by the ammo usage and not percent.
Logged


Quote
<Timbo> posting on the trem forums rarely results in anything good
OhaiReapd
Spam Killer
*

Turrets: +7/-239
Posts: 942


« Reply #9 on: October 21, 2010, 08:12:52 PM »

I have a way to make a bar. But it's not what I want.
Logged

Plague Bringer


Turrets: +147/-187
Posts: 3811


« Reply #10 on: October 22, 2010, 12:01:05 AM »

If you can do it with ammo clips, why not with stamina?

At a random guess, not knowing anything here, I would say the ammo clips are just bars made up of a number of rectangles and are decreased by the ammo usage and not percent.
Stamina is a value. We can read that value and increase or decrease bars accordingly.
Logged

U R A Q T
OhaiReapd
Spam Killer
*

Turrets: +7/-239
Posts: 942


« Reply #11 on: October 22, 2010, 09:43:51 AM »

If you can do it with ammo clips, why not with stamina?

At a random guess, not knowing anything here, I would say the ammo clips are just bars made up of a number of rectangles and are decreased by the ammo usage and not percent.
Stamina is a value. We can read that value and increase or decrease bars accordingly.

Sooo mind telling me how?
Logged

Plague Bringer


Turrets: +147/-187
Posts: 3811


« Reply #12 on: October 22, 2010, 05:39:53 PM »

If you can do it with ammo clips, why not with stamina?

At a random guess, not knowing anything here, I would say the ammo clips are just bars made up of a number of rectangles and are decreased by the ammo usage and not percent.
Stamina is a value. We can read that value and increase or decrease bars accordingly.

Sooo mind telling me how?
Check the code. It's in there somewhere.
Logged

U R A Q T
superspirality
Guest
« Reply #13 on: October 27, 2010, 08:31:49 AM »

If you can do it with ammo clips, why not with stamina?

At a random guess, not knowing anything here, I would say the ammo clips are just bars made up of a number of rectangles and are decreased by the ammo usage and not percent.
Stamina is a value. We can read that value and increase or decrease bars accordingly.

Sooo mind telling me how?
Check the code. It's in there somewhere.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
TremPlus theme by Ingar, based on AF316 theme by Fedhog
Valid XHTML 1.0! Valid CSS!