Gio,
I wanted to add a simple logo on game loading (so not using preload scene)
I use wade.setLoadingImage(logo).
Everything works fine on load and I see the logo image.
However, when the game is loaded and the scenes are switching, the loading logo flashes briefly.
For example, switching from the intro scene to the help scene, or switching from intro scene to play.
When changing scenes I use wade.loadScene(newScene,0,0,1)
I have tried changing the default layer.
I have tried using wade.clearCanvas() and using wade.clearScene()
But nothing seems to get rid of the loading logo.
The logo is not visible during game play, but flashes briefly when scenes are changed.
It seems as if the loading image is existing on some canvas which I can't seem to clear ?
I know you use loading images in the games on the clockwork chilli site, so I just must be missing something. In a nutshell, my code looks like this
this.load = function() { wade.setLoadingImage('./images/ashatej_banner.jpg'); // do rest of loading stuff}this.init = function() { // do all the initialization stuff self.loadIntro()}this.loadIntro = function() { // tried to add wade.clearCanvas(1); // tried to add wade.clearScene(); wade.loadScene('./data/intro.wsc',0,0,1)}// this is used to switch scenes i.e. help, credits, game, etcthis.changeGameScene = function(newScene) { wade.loadScene(newScene,0,0,1);}
As always, any help is appreciated
cheers,
Shri