Can someone help me with my program. I have a project due and i'm stuck trying to get rid of the background music when I die. When I die I play another sound so I want to hear just that instead of both the background music and the game over music
private GreenfootSound bgSound = new GreenfootSound("/* sound filename */");
bgSound.play(); // or 'bgSound.playLoop();'
bgSound.stop(); // or 'bgSound.pause();