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.

[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

Code:
#==============================================================================

# ** Default screen tone

#------------------------------------------------------------------------------

#  Sets a default screen tone so that you can rearrange the set before

#  the game starts.

#==============================================================================

class Game_Screen

  alias :initialize_amy_tone :initialize

 

  #--------------------------------------------------------------------------

  # * Object Initialization, aliased

  #--------------------------------------------------------------------------

  def initialize

    #------------------------------------------------------------------------

    # * Script settings: change these values, -255 -255 -255 = black

    #------------------------------------------------------------------------

    red   = -255

    green = -255

    blue  = -255

    

    #------------------------------------------------------------------------

    # * Call the default initialize method, aliased

    #------------------------------------------------------------------------

    initialize_amy_tone

    

    #------------------------------------------------------------------------

    # * Sets the tone

    #------------------------------------------------------------------------

    @tone = Tone.new(red, green, blue)

  end

end

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
 
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":eshbgv3s said:
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.
 

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