Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Needed help @ Blizz ABS

Hello, i need help at the blizz-ABS, when i start the game the hud is already on, does anyone know how to change that so that the hud is automattically off?

Tx for help,
Dylanf3
 
in the script there is changeable options  the beginning of these looks like this

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  # BlizzABS::Config
  #----------------------------------------------------------------------------
  #  This module provides Blizz-ABS configurations.
  #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 
  module Config

under this find hud enabled. replace the word true with false
 
then it crashes when i want to put it on again, but this topic may be closed because someone has scripted inside the original script so that its fully functional. it crashes when i want to put it off in the game again and then want to put it on again.
:straightthumb:
 
Yeh i scripted in another variable that allows the HUD to be placed on layer 0 when the value is set to 1 and at 1000 again when the value was set back at 0... For some reason the event-driver deathlocks when i try to set a variable to false.. There might be a normal reason for it, but it would have mean i'd have to get into the code a bit more, and i didn't had the time because someone was bugging me to get it fixed asap, *peers at dylan*. By using intergers it worked so why bother trying to get it done with bools when ints work  :wink:

i added:

HUD_OMIT = 0

to the Config module (part 1) and

def hide
    self.z = 0
  end
 
  def show
    self.z = 1000
  end


To the hud-class (part 3) and
if BlizzABS::Config::HUD_OMIT == 1 && @hud != nil
      @hud.hide
    elsif @hud != nil
      @hud.show
    end


To the check_huds def.

So now all you need to do is use "script" and put BlizzABS::Config::HUD_OMIT = 1 or 2 into your events to hide or show the hud..

The advantage it gives is that you can "hide" the hud when you want to show a picture or something else and you can keep doing it, while if you change the default value in the script its a one-time only because the Blizzard ABS-script doesn't "remove" the hud once its been created.
 
That was a necropost, But, What version do you use? With every version, there is a file called Blizz-ABS config. Make it how you want it, in there, click generate script, and replace it with the old part1.
in the config thingie, you can find, Enemy Health bars. click on that one, and it is there.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top