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

2011/9/16

Sound intensity

K_O_P K_O_P

2011/9/16

#
Is there any possibility to play music or sounds louder or quieter?
rvevea rvevea

2011/9/16

#
Although I haven't tried it yet ... I'd imagine you could use something like: setVolume(int level) Set the current volume of the sound between 0 (off) and 100 (loudest.) and if you wanted to do it for individual sounds you could do something like:
Greenfootsound.setVolume(High or Low int) 
*play sound here*
Greenfootsound.setVolume(back to original volume level)
Most of this is in the GreenfootSound class documantation.
K_O_P K_O_P

2011/9/18

#
Thank you very much! I'll try it! :)
You need to login to post a reply.