I am adding finishing touches to a lab in which we build a game called Spidertron. I am wondering if there is a command I can use between commands to play two different wav files with a pause in between so the sounds are not coming out right on top of one another. This ios what I am using to end the game and play the two sounds:
/**
* Method to end the game with a game over screen and sound
*/
public void gameOverLose()
{
if(isTouching(Robo.class) == true){
Greenfoot.playSound("scream.wav");
removeTouching(Robo.class);
getWorld().addObject(new GameOver(),300,200);
Greenfoot.playSound("game over.wav");
Greenfoot.stop();
}
