YesNoOk
avatar

How to add a custom bar/gauge/meter (Read 5662 times)

Started by Boxuu, May 26, 2021, 02:25:25 pm
Share this topic:
How to add a custom bar/gauge/meter
#1  May 26, 2021, 02:25:25 pm
  • *
  • The Magic Esper
  • I like boxes
    • New Zealand
Hello. I would like to know how to add custom bars to my characters. I already have the sprites made and now I'm wondering how to make them appear in gameplay and when the bar is depleted, it will trigger something, ect ect.

I tried searching if there were any video tutorials but it appears that no one has made one as it all comes up with life bars and not custom bars. If anyone could link me to a page that explains how to add what's bolded above or explain here, that'd be very helpful.
Boop
Re: How to add a custom bar/gauge/meter
#2  May 27, 2021, 01:36:31 pm
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
The bars are coded as either Helper or Explod, or both, depending on what you want to achieve or interact with.
As there's no universal code for that, it's up to the coder on how to create them.
My advice is that you look into characters that have custom bars, and look at their code to see how they are made, and try to replicate the same structure, at least while you are still learning
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: How to add a custom bar/gauge/meter
#3  May 28, 2021, 07:11:26 am
  • *
  • The Magic Esper
  • I like boxes
    • New Zealand
Alrighty. I actually got a custom bar to appear as a helper in state -2. Now I'm just wondering how to make it do stuff. Thanks for the advice.  :)
Boop
Last Edit: May 28, 2021, 07:40:03 am by Boxuu