Default Screen Tone
by Amy
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
#==============================================================================# ** 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) endend
Credits and Notes
As this is such a short script no credit is necessary.
本贴来自国际rpgmaker官方论坛作者:Ellie Jane处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/default-screen-tone.22711/