plicatibu Posted February 27, 2014 Share Posted February 27, 2014 I'm pretty sure that the code from resources\Project Templates\Full Screen Mobile\Preloader.js is wrong: if (this.cache.isSoundDecoded('titleMusic') && this.ready == false) { this.ready = true; this.state.start('MainMenu'); }But it should be (in my opinion) if (this.cache.isSoundDecoded('titleMusic') && this.ready == true) { this.ready = true; this.state.start('MainMenu'); }Regards. Link to comment Share on other sites More sharing options...
Hsaka Posted February 27, 2014 Share Posted February 27, 2014 It's correct as it is because ready is initialized to false and we're only waiting for the sound to be preloaded to advance to the next state. Ready is only ever set in that bit of code and is used to make sure that the contents of the if statement only get executed once. plicatibu 1 Link to comment Share on other sites More sharing options...
plicatibu Posted February 27, 2014 Author Share Posted February 27, 2014 Thank you so much for clarifying that for me. Regards. Link to comment Share on other sites More sharing options...
Recommended Posts