mattbrand Posted December 10, 2016 Share Posted December 10, 2016 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? Link to comment Share on other sites More sharing options...
end3r Posted December 10, 2016 Share Posted December 10, 2016 What version of Phaser are you using? Those features are available since 2.4.7. Here's an example of a project implementing those features: http://enclavegames.github.io/Enclave-Phaser-Template/ - its source code is available on GitHub. Alexalten 1 Link to comment Share on other sites More sharing options...
mattbrand Posted December 19, 2016 Author Share Posted December 19, 2016 Oh, I am on 2.4.6! Thanks for the info! Link to comment Share on other sites More sharing options...
Recommended Posts