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.

Animated Gradient Bars V4.0.1

Status
Not open for further replies.

Mac

Member

This deserves more attention! Everybody get here and download and post feedback *shakes fist*

I really like this script, its easily customizable and so far i haven't bumped into any bugs so its smooth sailing ^_^, shall report back if anything goes wrong.
 
Mac;154209":1hb5kau5 said:
This deserves more attention! Everybody get here and download and post feedback *shakes fist*

I really like this script, its easily customizable and so far i haven't bumped into any bugs so its smooth sailing ^_^, shall report back if anything goes wrong.

And it works mostly with the TBS ;) But I noticed one thing in that combination, there when in tac.battle the bars are drawn but seem to be streched and clipped so that the gradient is no more visible, and they don't get smaller when damage is taken ...
Maybe this is something Mac and Trickster could work out together ;)

Greets,
Dukey
 
When you say you can use these bars anywhere, does the demo come with instructions for using to represent qualities aother than HP and SP, like a Limit guage?
 
yes there is a commented section on that

Updated to V3.3.3 (Lucky Trio of 3's) There should be no more problems with the bars appearing when they don't need to be
 
Trickster;161210 said:
Compatibility
.....I am not promising compatibility with all other battle addons, but if there is then it is something minor, inform me and I'll create a patch (depends)
Hmmm. I've been asked by a number of people just why my 'Animated Battlers' script removes your HP, MP and AT bars. Frankly... 'Why ARE they disappearing?' O_o Happens in-battle only, not in the field menu. Seems inquiring minds want to know... :wink01:
 
Its because of this

Code:
viewport.z = 99

The Bars depend on that viewport now all windows's viewport is 100 the viewport of the bars is 99 the window is displayed over the bars

Also I'm moving this to the Gradient Bars topic
 
Hey Trickster,
this is a little gift for you.
Code:
#--------------------------------------------------------------------------
# ● Begin SDK Enabled Check
#--------------------------------------------------------------------------
if SDK.enabled?('Animated Gradient Bars')
#==========================================================================
class Sprite_Battler
  #--------------------------------------------------------------------------
  alias_method :tibuda_enbar_spr_battler_update, :update
  def update
    tibuda_enbar_spr_battler_update
    if $scene.is_a?(Scene_Battle) && $scene.spriteset.is_a?(Spriteset_Battle)
      if @battler.is_a?(Game_Enemy)
        if @hpbar.is_a?(Sprite_ActorHpBar)
          @hpbar.visible = @battler_visible
          @hpbar.update
        else
          @hpbar = Sprite_ActorHpBar.new(@battler, self.x-48, self.y, 100, 8)
          @hpbar.z = self.z - 1
        end
      end
    end
  end
  #--------------------------------------------------------------------------
  alias_method :tibuda_enbar_spr_battler_dispose, :dispose
  def dispose
    tibuda_enbar_spr_battler_dispose
    @hpbar.dispose if @hpbar.is_a?(Sprite_ActorHpBar)
  end
  #--------------------------------------------------------------------------
end
#==========================================================================

#--------------------------------------------------------------------------
#  End SDK Enabled Check
#--------------------------------------------------------------------------
end

Edit: when I change the bar opacity, the background op will not change. I'm adding this
Code:
class Sprite_GradientBar
  def opacity=(value)
    super(value)
    self.background.opacity = value
  end
end

Edit: just found a bug when selecting an actor to heal (using item or skill). I noticed the error is happening when calling draw_actor_hp from Window_Help#set_actor.
Script 'Window_Base' line 48: NoMethodError occurred. undefined method `[]' for nil:NilClass
I can't understand why, but the window is not initializing @hp_bar_sprites hash (i believe the same will happen with @sp_bar_sprites)
 
I'm getting a script error that says:
http://imageigloo.com/images/666script error.JPG[/img]
after entering a battle. I got it after putting in the Passive Effect script...can the two be used together?
Also, the same time I got the script error, this
http://imageigloo.com/images/7742bars f\'ed up.JPG[/img]
started happening after opening then exiting the menu. The same happens in the menu screen.

So, can the gradient bar and passive effects scripts not be used together?
 
What other scripts have you added to your project

tibuda;166159 said:
Hey Trickster,
this is a little gift for you.
Code:
#--------------------------------------------------------------------------
# ● Begin SDK Enabled Check
#--------------------------------------------------------------------------
if SDK.enabled?('Animated Gradient Bars')
#==========================================================================
class Sprite_Battler
  #--------------------------------------------------------------------------
  alias_method :tibuda_enbar_spr_battler_update, :update
  def update
    tibuda_enbar_spr_battler_update
    if $scene.is_a?(Scene_Battle) && $scene.spriteset.is_a?(Spriteset_Battle)
      if @battler.is_a?(Game_Enemy)
        if @hpbar.is_a?(Sprite_ActorHpBar)
          @hpbar.visible = @battler_visible
          @hpbar.update
        else
          @hpbar = Sprite_ActorHpBar.new(@battler, self.x-48, self.y, 100, 8)
          @hpbar.z = self.z - 1
        end
      end
    end
  end
  #--------------------------------------------------------------------------
  alias_method :tibuda_enbar_spr_battler_dispose, :dispose
  def dispose
    tibuda_enbar_spr_battler_dispose
    @hpbar.dispose if @hpbar.is_a?(Sprite_ActorHpBar)
  end
  #--------------------------------------------------------------------------
end
#==========================================================================

#--------------------------------------------------------------------------
#  End SDK Enabled Check
#--------------------------------------------------------------------------
end

Edit: when I change the bar opacity, the background op will not change. I'm adding this
Code:
class Sprite_GradientBar
  def opacity=(value)
    super(value)
    self.background.opacity = value
  end
end

Edit: just found a bug when selecting an actor to heal (using item or skill). I noticed the error is happening when calling draw_actor_hp from Window_Help#set_actor.

I can't understand why, but the window is not initializing @hp_bar_sprites hash (i believe the same will happen with @sp_bar_sprites)

Ok, for the script post it in a new topic I'm sure other people could make use of it :D

And I can not duplicate the error you are getting could you give me more info on how you got it

Also I am working on MACL 2.0 (since Seph ruined my 1 update per month plan) rewriting all of the code that is included with it, some things need to be changed with it.
 
I got both errors after putting the Passive Effects scripts in. I know it's that because I removed all the scripts I had pasted from the demo and neither of these problems happened. So, it seems like this is the problem. Is there some way to fix the compatability issue? I hope so, because I really like both scripts.
 
No, you don't have a script that is required

Animated Gradient Bars requires the script Window Sprites

which is why you see the bars appearing in weird places

(Didn't you get a message saying that that script was required?)
 

don004

Member

umm. a little help here?

it says :

Script 'Actor (HP|SP|EXP) Bars' line 12: NoMethodError Occurred.

undefined method `viewport2' for nil:NilClass

what could be the solution here?
im using the RPG maker v1.02 and SDK 2.1 and that class library thing v1.5

can someone help me? or i should let u ppl download my scripts and fix it down?

**im trying being polite but im too nervous to do that xD**
 

don004

Member

Part I, II and III

w8 that error doesn't appear anymore ( i think ) but another one comes...

it says

Script 'Window Sprites' line 18: NoMethodError occurred.
undefined method `check_requirements' for SDK:Module

well that what's wrong..

what i did is:

1. downloaded ur demo
2. copied all the scripts
3. Erk error occurred
 
Status
Not open for further replies.

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