Hello, i got problem when inserting bg music to main menu world. greenfoot terminal keeps saying file not found. but im sure i already put the file in sounds folder inside scenario folder and the filenaming was right. Here's the directory: C:\Users\Personal\Documents\Adjojing\sounds (Adjodjing is the scenario name)
Or maybe there's something wrong with my code? here's the code:
i've tried this code also but doesnt works either
Or maybe there's something wrong with my code? here's the code:
public void act()
{
Greenfoot.playSound("sandstorm.mp3");
}public GreenfootSound bgMusic = new GreenfootSound("sandstorm.mp3");
public void started()
{
bgMusic.playLoop();
}
public void stopped()
{
bgMusic.stop();
}
note: sandstorm is the bgMusic filename.

