Screen Fade Bug

ok, thx, there is a bit of a visual bug for me, in sector 1, if you hit the trigger for sector 3, it fades out, and then it fades back showing sector one for just a few moments before switching to sector 3, but it doesn’t happen the other way around, after going to sector 3 for the first time, I went back to sector 1 then back to sector 3 a few times, and the same thing happened.

is it possible to make it fade after the scene change occurs?

Did you look at the new change scene code? Try and change it and see what happens.

I added it, but the screen fades back before the scene change, or at least, it might’ve glitched out

I also made an edit so that the only person who can activate the trigger is Qiste, as without it the only enemy added(Alphadels) and the laser pistol shots can also activate it.

Just keep persevering until you discover what is going on. I’m not available to help I’m afraid.

I fixed the part with other entities touching it, now I am working on the spawn position that you go to when a scene trigger is happening, which I also just did, but it is still fading out too fast, I might put the fade out in the same section as the position set.

I increased the fade-in time to 2.0 and the fade-out time to 2.5 and it the transition happens right before the fade-in fully happens, maybe like 2-3 frames before the screen is fully black, making the fade out clean

Perhaps changing scenes just begins an opacity lerp of some element covering the camera, then when the lerp reaches 1 change scenes and reverse the lerp timer, when 0 is reached disable it or somethin

The issue was that you need to wait until the change scene has completed before completing the transition ie fading out. I update the fork.

    this.app.scenes.changeScene(this.scene, async function(err, entity) {
        if (!err) {
            // success
            await window.sceneTransition.complete();
        } else {
            // error
        }
    }); 

ok, thx, but, when I was double checking where that will go, Which I believe to be change scenes script, you deleted everything under change scene.

so just a conformation, it is the script “change scene” right?

Just replace the call to this.app.scenes.chaneScene and the subsequent call to sceneTransition.complete() with the code snippet above.

um, I did that, added it, saved it, then it deleted everything, then deleted all of the transition script, and it is not undoing

and it is not letting me paste the transition back, what happened?

and when I downloaded the transition script, then deleted the old transition script, and put in the downloaded one in it’s place, it reset both, without the new check screen change part.

after resetting the transition script, it allowed me to paste the scene change script adjustment. that was strange