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.

Screen Color Tone [RESOLVED]

Hey all.
I've encountered another problem in my game. There's one part where the character has to explore a dark, dark cave, so I change the screen color tone. However, when I enter a random battle, the screen is still dark as ever; you can hardly see the battleback or the enemies. Is there a way to change the color tone back to normal in battles, then restore the regular color tone after leaving battle?
 
Try inserting this above 'main' in the script editor...

Code:
class Scene_Battle

  alias brew_save_tone main
  alias brew_reset_tone battle_end
  
  def main
    @save_screen_tone = Tone.new($game_screen.tone.red, $game_screen.tone.green, $game_screen.tone.blue, $game_screen.tone.gray)
    $game_screen.tone.set(0,0,0,0)
    brew_save_tone
  end
  def battle_end(result)
    # Set screen tone back to previous setting
    $game_screen.tone.set(@save_screen_tone.red, @save_screen_tone.green,@save_screen_tone.blue,@save_screen_tone.gray)
    brew_reset_tone(result)
  end
end

Let me know if there's problems

Be Well
 

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