nope, I just found it, I needed to set
public void play() // play music 1 time.
{
Greenfoot.Sound("soundfilename.mp3");
}
--> But I do not know how start a new song immediately after the first song.
There should be an 'isPlaying' method that returns a boolean value indicating whether a particular sound is playing or not. Use the 'act' method to check it, and when it returns 'false' start the new sound.
You would need a int 'songNum' field to track which song was last started, an array for the songs (as String filenames or as GreenfootSound objects).
Then you can use