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

2017/12/4

background music

doglover555 doglover555

2017/12/4

#
How do I make music play in the background/loop of just one of the World subclasses?
danpost danpost

2017/12/4

#
By not using the Greenfoot class method 'playSound' and by instead creating a GreenfootSound object and keeping a reference to it so you can stop it later.
doglover555 doglover555

2017/12/4

#
My program crashes when I try to import the sound file (it's a .wav and I have a Mac)... Do you know how I'd fix that?
GreenfootSound music = new GreenfootSound("Dance Into.wav");
Super_Hippo Super_Hippo

2017/12/4

#
Does the file have the same name? Maybe it is 'Intro' and not 'Into"? I am not sure how it works in Mac, but you could try to use a file name without a space.
You need to login to post a reply.