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

2016/2/24

Sound issue

Trunksssj4 Trunksssj4

2016/2/24

#
Hello, does anybody know how to stop playing music when the game sets new world? For the music in the first level/world I used: GreenfootSound sound = new GreenfootSound("POL-at-dawn-short.wav"); sound.playLoop();
danpost danpost

2016/2/24

#
You will not be able to stop the sound if you declare the GreenfootSound object within the method.
Trunksssj4 Trunksssj4

2016/2/25

#
So what can I do instead??
danpost danpost

2016/2/25

#
Trunksssj4 wrote...
So what can I do instead??
Declare the GreenfootSound object outside the method.
You need to login to post a reply.