Search the Community
Showing results for tags 'fade'.
-
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?
-
Is there anyway to fade the albedoTexture of a PBR material, so that I can animate this material to a plain colour? I notice there is an ambientTextureStrength property. but no albedoTextureStrength property. Cheers
- 3 replies
-
- fade
- albedotexture
-
(and 2 more)
Tagged with:
-
Hey all! I have 4 game states - Splash, Tutorial, Play and GameOver. Splash and Tutorial load and render quickly, but when I go to Play, it takes a second, and it shows a black screen during that second. I want to have a more elegant state transition. So I started looking around and see lots of suggestions, which all focus on game.camera.fade and game.camera.flash. But I can't seem to use those functions. When I try to use them in create for the any state I get "Typeerror: game.camera.fade is not a function(…)", and same for flash. I've also tried this.camera.fade. What am I doing wrong?
-
There is some way to fade in/out a sound in Phaser? I have tried to create a function, but no success. Thanks.