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.

[Resolved] Battler Opacity?

Puffy

Member

I'd like for my allied battlers to always be completely opaque, but I can't find anywhere in the normal battle scripts that control it. There's some opacity stuff in Sprite_Battler, but playing with it doesn't seem to do anything for me.

Code:
68      if $game_temp.battle_main_phase

69        self.opacity += 3 if self.opacity < 255

70      else

71        self.opacity -= 3 if self.opacity > 207

72      end

I'm using Minkoff's animation system, but I think this behavior is in the DBS, too, with the static images it uses.

What I have:
opacity1ow5.jpg


What I want, constantly:
opacity2cg8.jpg


Thanks, in advance.
 
From that section you posted it would seem to me that changing
Code:
        self.opacity -= 3 if self.opacity > 207
to
Code:
        self.opacity -= 3 if self.opacity > 255
Would sort this right out for you, give it a try if it doesn't sort it post the full script and I'll take a further look.
 

Puffy

Member

Tried that; no dice, but thanks. It's maybe default, unedited Sprite_Battler behavior. (I'm assuming that's where I should be looking.)

EDIT: Crisis averted; you're right! I just had a eureka moment to check the SDK, which does the same thing, and fixing both instances of that code does it perfectly. Thanks much. :D
 

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