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

2022/12/14

Sound issue

N8TH1N6 N8TH1N6

2022/12/14

#
Hey, I dont know if I am the only one with that problem but somehow sometimes music is played normally with the following code
public GreenfootSound bgMusic = new GreenfootSound("jungle_new.wav");
//
 public void started()
    {
        bgMusic.playLoop();
        bgMusic.setVolume(35);
    }

    public void stopped()
    {
        bgMusic.stop();
    }
// Sometimes there is no Issue and sometimes it just doesnt play.
You need to login to post a reply.