example
I put a song on a menu but when I play the game to start the music continues
I'm an actor named " Start" , oh when I click it on the menu the menu music has to stop , as I do this ?
World
subclass(Words)
subclass(Word1)
public class Main extends Words
{
GreenfootSound myMusic = new GreenfootSound("Main Soundtrack.mp3");
public void act(){
myMusic.playLoop();
}
}
Actor
subclass(Buttons)
subclass(Start)
public class Start extends Buttons
{
public void act()
{
}
public void startLevel(){
if( Greenfoot.mouseClicked(this)){
getWorld().GreenfootSound(myMusic.stop());
}
}
}

