Jump to content

Incomplete camera's FadeIn effect


kurhlaa
 Share

Recommended Posts

Hi,

It seems something is not finishing in the camera's fadeIn effect. If I use this code:

var camera = scene.cameras.main;

scene.time.delayedCall(5000, function() {
    camera.fadeOut(250);
}, [], scene);

camera.on('camerafadeoutcomplete', function() {
    camera.fadeIn(250);
});

... after the end camera stays a little dark, like not fully transparent. I've compared 2 screenshots. At the moment I'm forced to call camera.resetFX() to make colors brighter again.

 

Can this be fixed?

Link to comment
Share on other sites

  • 2 months later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...