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

2012/6/20

need sounds for my scenarios

steved steved

2012/6/20

#
I have a couple of scenarios that need sound effects and maybe music does anyone know a good place to get nice free sound effects. the games are starfight and platforms of meh. (I can probably find my own music but if anyone has reccomendations they would be appreciated :D)
erdelf erdelf

2012/6/21

#
look here. I used it a few times, it's currently offline but should be back in a few hours.
steved steved

2012/6/22

#
thanks I've got some sounds now but how do you play one in a loop?
erdelf erdelf

2012/6/22

#
try something like this:
GreenfootSound sound = new GreenfootSound("sound.wav");
and in act:
if(!sound.isPlaying())
{
    sound.play();
}
tylers tylers

2012/6/22

#
or just put this in the constructor
GreenfootSound sound = new GreenfootSound("sound.wav");
sound.playLoop();
steved steved

2012/6/23

#
thanks guys I've got it working now :D
You need to login to post a reply.