Fade In from or fade out to black in a custom scene

Lihinel

Veteran
Veteran
Joined
Nov 9, 2013
Messages
261
Reaction score
321
First Language
German
Primarily Uses
Solved.

The problem was not with the fade from or to black.

I had a conditional statement like
if( x > 1000){SceneManager.goto(Scene_YYYY)}
that was not within the
if (!this.isBusy()) {
...
}
block.

I guess next time I should provide the entire code, although I didn't think anyone would read through 300-1500 lines.
Took me some time to find this, only did by reducing the working and non working Scenes down to a barebone construct and repeatedly trying if they still worked or not, guess thats one way to improve.

----------------------------------------------------------------------------------------
So I figured it's possible to fade in a scene from black by adding this.startFadeIn(...); as the last command of of the start method after initializing some sprites so they'll appear as the black sprite fades:
Scene_XXXXX.prototype.start = function() {
.....

this.startFadeIn(this.fadeSpeed(), false);
}
However, I am not sure about about fading out.
I tried adding the following:
Scene_XXXXX.prototype.stop = function() {
Scene_Base.prototype.stop.call(this);
this.startFadeOut(this.fadeSpeed(), false);
};
and it seems to work for some custom Scenes, but not for others.
It seems to somehow break the SceneManager.goto(Scene_YYYYY) or the terminate, or something else, though no idea what, I only know that it no longer transitions to the next Scene, if I comment the stop() out everything works fine again.

So, once again, what am I doing wrong? Thanks in advance.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,455
Members
137,821
Latest member
Capterson
Top