Hello all
I am looking for a plugin that allows me to change the default fade to black on quit to a fade to white. Does anyone have such a plugin or can direct me to one?
I also need it to play an explosion sound effect too.
Many thanks in advance
You mean when you quit from menu?
Scene_Base.prototype.fadeOutAllWhite = function() {
var time = this.slowFadeSpeed() / 60;
AudioManager.fadeOutBgm(time);
AudioManager.fadeOutBgs(time);
AudioManager.fadeOutMe(time);
this.startFadeOut(this.slowFadeSpeed(), true);
AudioManager.playSe({
name: 'Explosion1',
volume: 100,
pitch: 100,
pan: 0
});
};
Scene_GameEnd.prototype.commandToTitle = function() {
this.fadeOutAllWhite();
SceneManager.goto(Scene_Title);
};
EDIT: Copy paste to notepad, save as .js file and add as plugin.
EDIT2: Removed that unnecessary const scene
Thank you!
I tried it, it certainly fades to paler colours but not quite all the way to brilliant white.
I appreciate your efforts though 🙂
It's the base code fadeout with the white option selected. It goes to full white and the blend mode seems to be normal. As far as I understand. But since it's a fade, it starts from 0 opacity and only reaches full opacity at the very end. So do you want it to reach full white faster and stay like that for some time before the scene changes?
EDIT: With full white I mean full opacity
I need it to be full white, quite fast. I really appreciate your help, thank you!
Just make it change the opacity faster in the fade update. Here I multiplied the change by 2. Add this to the plugin:
Scene_GameEnd.prototype.updateFade = function() {
if (this._fadeDuration > 0) {
var d = this._fadeDuration;
if (this._fadeSign > 0) {
this._fadeSprite.opacity -= this._fadeSprite.opacity / d * 2;
} else {
this._fadeSprite.opacity += (255 - this._fadeSprite.opacity) / d * 2;
}
this._fadeDuration--;
}
};
You can change the multiplication here and also the fade duration in what I gave you earlier if you want.
Ahh man, I dunno what I am doing wrong but it doesn't seem to want to work at all.
It's times like this that i wished I could program, I feel bad you're doing this and my dumbass can't get it to work haha.
Can you show what you wrote in the plugin? And what's happening? Unless I made some mistake copying it here it seemed to work for me.
I bet I have done something dorky
The screen fades a little paler but not to white and not quickly either
So does that happen when you select from the game menu (the one that you go to when you press esc when you're playing the game) "Game End" and then select "To Title"? Do you have other plugins that might change how it works?
I don't think it's about the color here, but the fact that it only reaches full opacity at the very end in the base codes. So it doesn't look full white. But like I said, my codes seemed to work for me, so there's probably a misunderstanding about where it's used.