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

2012/5/22

help with sound

martijn13039 martijn13039

2012/5/22

#
I like to put music, and sound effect in my game with the code if...... Greenfoot.playSound(".........") but the problem is if I donwload a soundeffect from internet and i put the name in the code there wil be come an error and there stay cannont find fille but I have just download it Somebody an idea what i do wrong
nccb nccb

2012/5/22

#
Are you putting the files in the sounds directory within the scenario? If your scenario is in e.g. c:\greenfoot-scenarios\frog-scenario then you should put the sounds into c:\greenfoot-scenarios\frog-scenario\sounds for them to be seen by the system.
martijn13039 martijn13039

2012/5/22

#
nccb i had done that, maby it is an other problem maby because it is a rar file or something like that
nccb nccb

2012/5/22

#
Do you mean the sound is still inside the RAR file (in which case: unrar it!)? Greenfoot can play files such as .wav files and .mp3 files.
martijn13039 martijn13039

2012/5/22

#
Nccb that was the problem thx for the help and quick respond it is working fine now
You need to login to post a reply.