This site requires JavaScript, please enable it in your browser!
Greenfoot back
siyara_b
siyara_b wrote ...

2017/8/17

background music wont play

siyara_b siyara_b

2017/8/17

#
private GreenfootSound bgMusic = new GreenfootSound("BATMETAL.mp3");
 
    public void started()
    {
        bgMusic.playLoop();
    }
 
    public void stopped()
    {
        bgMusic.stop();
    }
this is my code to add bg music, it compiles without error but when I run the program it does not play. The audio file is working perfectly and can be reached by greenfoot. Any help is greatly appreciated :)
Super_Hippo Super_Hippo

2017/8/17

#
Is this code in your active world?
You need to login to post a reply.