What you need is in rpg_scenes.js, in the Scene_Base class. There are a number of fade-related functions.
I would like, however, to point out how much of a very bad idea it is to mess with the classes themselves. It is much better to make a basic plugin and edit that. You can just override that function that does what you need from there.
Hey taarna,
OK! I've been giving making a small plugin to handle this a shot. So far, though, no luck. I've taken everything from rpg_scenes.js that looks like it should control it, but changing the variables doesn't seem to help. Can you give me a hand? This is the plugin so far:
//=============================================================================
// WZO_DefaultFadeSpeed.js
//=============================================================================
/*:
* @plugindesc A quick and easy way to control the default speed of the 'Fadeout Screen' and 'Fadein Screen' commands in the Event Editor. Crucial for dramatic pacing...!
* @author willoneill
*
* @help Should be self-explanatory?
*/
(function() {
// Do not remove above
Scene_Base.prototype.startFadeIn = function(duration, white) {
this.createFadeSprite(white);
this._fadeSign = 1;
this._fadeDuration = duration || 30;
this._fadeSprite.opacity = 255;
};
Scene_Base.prototype.startFadeOut = function(duration, white) {
this.createFadeSprite(white);
this._fadeSign = -1;
this._fadeDuration = duration || 30;
this._fadeSprite.opacity = 0;
};
// Do not remove below
}) ();
Am I not changing the right thing? Or is the syntax off somehow? I've put the values back to default, but I had changed that '30' duration to a way higher number (320) and nothing happened.
Let me know, thanks!