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

Report as inappropriate.

ksksks
ksksks presents ...

2013/10/10

Dancing Fading Circles

Anyone Know how to add music???

2802 views / 17 in the last 7 days

Tags: mouse demo with-source

This scenario is a member of: Beginners


open in greenfoot
Your browser does not support the canvas tag.
KartoffelbrotKartoffelbrot

2013/10/10

For sound you should use the GreenfootSound class. Look in the API, it's quite simple.
ksksksksksks

2013/10/10

Iwas thinking my own sound file.
KartoffelbrotKartoffelbrot

2013/10/11

You can play every MP3, WAV and some other Sound files with it. GreenfootSound sound = new GreenfootSound("Your_Sound_File.MP3"); sound.play(); You have to place the music/sound files into the sounds folder in the project.
ksksksksksks

2013/10/12

thanks
KartoffelbrotKartoffelbrot

2013/10/13

No problem. If you want to play only a single sound you can use Greenfoot.playSound("soundfile.wav"); , too. With GreenfootSound you are able to play music in loops, too.
ksksksksksks

2013/10/28

Check the discussions. I need alot of help!
ksksksksksks

2013/11/15

@mik where is the explosion making thing?
danpostdanpost

2013/11/15

@ksksks, I believe the 'lunarlander' sample scenario contains the Explosion class (and image).
ksksksksksks

2013/11/15

Is it the Better version? Book version isn't that good.
danpostdanpost

2013/11/15

@ksksks, I do not know what you mean by 'the Better version'; however, I have tested the one I got with my Greenfoot 2.3.0 download and found no problems with it.

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.