Hot to play music during the whole game
Ago

Hi, I can't figured out how to play a music file during the whole game. My point would be to have have the file played through all the different scenes without being stoppend. Is that possibile? in which parrt of the code should I load it and how?

thanx

App = function()
{
     
    // this is where the WADE app is initialized
    this.init = function()
    {
           
          wade.loadScene('home.wsc', true, function()
        {
        });   
         
        // LOAD GAME
        this.loadGame = function(){
        
         
        this.numDifferencesFound = 0;
        this.totalDifferences = 5;
        
        this.numErrorsFound = 0;
        this.totalErrors = 5;
        
        //SCENE 1
        wade.clearScene();
        wade.loadScene('scene1.wsc', true, function()
        {
        });
        
        
        this.nextlevel = function()
        {   
        this.numDifferencesFound = 0;  
        this.totalDifferences = 5;
        this.numErrorsFound = 0;
        this.totalErrors = 5;
        
        wade.clearScene();
           
        
       //SCENE 2
        wade.clearScene();
        wade.loadScene('scene2.wsc', true, function()

 

...and so on....

1 Comment
Ago

figured it out, i mispelled the file name in my directory

Post a reply
Add Attachment
Submit Reply
Login to Reply