Jump to content

Camera Fade and Flash


mattbrand
 Share

Recommended Posts

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

  • 2 weeks later...
 Share

  • Recently Browsing   0 members

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