[VXA] Default screen tone

Introduction

This script applies a default screen tone before the game starts. It is used to allow you to rearrange things on the screen: events you need overlaying on top of one another, pictures you need showing, and so on. Otherwise there would be a split second glimpse of your scene before the screen changes to black, which would be no good!

Settings

You can change the red, green, and blue values to give the screen your own tone (more useful if you want to change it to white (255,255,255)) although most will probably use black anyway (default).

Instructions

Include the script before main but after the rest of the default scripts (right click main -> insert).

Move your events around in your scene with an autorun event, and then use the screen tone event to change the tone to 0,0,0 (or whatever you need) to show everything.

Script

  1. #==============================================================================
  2. # ** Default screen tone
  3. #------------------------------------------------------------------------------
  4. #  Sets a default screen tone so that you can rearrange the set before
  5. #  the game starts.
  6. #==============================================================================
  7. class Game_Screen
  8.   alias :initialize_amy_tone :initialize
  9.  
  10.   #--------------------------------------------------------------------------
  11.   # * Object Initialization, aliased
  12.   #--------------------------------------------------------------------------
  13.   def initialize
  14.     #------------------------------------------------------------------------
  15.     # * Script settings: change these values, -255 -255 -255 = black
  16.     #------------------------------------------------------------------------
  17.     red   = -255
  18.     green = -255
  19.     blue  = -255
  20.    
  21.     #------------------------------------------------------------------------
  22.     # * Call the default initialize method, aliased
  23.     #------------------------------------------------------------------------
  24.     initialize_amy_tone
  25.    
  26.     #------------------------------------------------------------------------
  27.     # * Sets the tone
  28.     #------------------------------------------------------------------------
  29.     @tone = Tone.new(red, green, blue)
  30.   end
  31. end
Expand to see the code.


Credits and Notes

As this is such a short script no credit is necessary.
Oo thank you very much for this! It's a very simple thing, but sometimes making an event work before the screen finishes loading is tough! :x
If I remember I'll make one for xp, as afaik there's no game_screen in xp.
OR...
start the game on a blank map and use the screen transitions. You don't see many people using screen transition in XP outside of battles. Maybe they don't know how to use it? Prepare transition, change maps and setup all your events, then execute transition. Ace's fadeout & fadein work pretty much the same way only less cool.
coyotecraft wrote:
OR...
start the game on a blank map and use the screen transitions. You don't see many people using screen transition in XP outside of battles. Maybe they don't know how to use it? Prepare transition, change maps and setup all your events, then execute transition. Ace's fadeout & fadein work pretty much the same way only less cool.


I still find it amusing that you needed a parallel process event to make the map load with a screen tone applied. And that I could use a one line script to make the title screen use a nonstandard transition when loading the map.
Yeah, the map properties needs to be revamped to have a preset screen color.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=77926