Solved.
The problem was not with the fade from or to black.
I had a conditional statement like
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:
However, I am not sure about about fading out.
I tried adding the following:
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.
The problem was not with the fade from or to black.
I had a conditional statement like
that was not within the
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:
However, I am not sure about about fading out.
I tried adding the following:
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.