This site requires JavaScript, please enable it in your browser!
Greenfoot back
BeYouself
BeYouself wrote ...

2014/5/15

Advancing between scenes.

BeYouself BeYouself

2014/5/15

#
I want the scenario to advance to the next scene after a certain delay. But, the delay is executing before i press the run button. Can someone help me. Plus, the music i am adding is playing before i press the run button. Can someone help me?
Greenfoot.playSound("Star_Wars_Theme_Song.mp3");
        Greenfoot.delay(4000);
        Greenfoot.setWorld(new OfficeOFGood());
danpost danpost

2014/5/15

#
Remove that code from your world constructor and add it to a 'public void started' method. The 'started' method is called automatically when the project goes from a stopped state to a running state (like, when you press the 'Run' button).
BeYouself BeYouself

2014/5/16

#
Thanks a lot. Could you post the code for the Buttons discussion
danpost danpost

2014/5/16

#
BeYouself wrote...
Thanks a lot. Could you post the code for the Buttons discussion
I have a new BGMusic Actor support class for background music that I want to get out here. I just now got an idea of how I can demo it. I will work on it in the near future.
You need to login to post a reply.