I'm having trouble in stopping my game over music. It won't stop when I clicked retry button. This is the code.
import greenfoot.*;
public class Dead extends World
{
GreenfootSound lose = new GreenfootSound("gameover.mp3");
public Dead()
{
super(750, 600, 1);
objek();
lose.playLoop();
if (Greenfoot.mouseClicked(Retry.class))
{
Greenfoot.setWorld(new Level1());
lose.stop();
}
}
public void objek()
{
addObject(new Retry(), 375, 383);
}
}

