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

2 days ago

How can I add background music while the game is running?

Pabloseb_ Pabloseb_

2 days ago

#
Hi, does some one knows how to do this? I really don't know.
Roshan123 Roshan123

yesterday

#
//global
static GreenfootSound bgMusic;

public MyWorld() 
{
   bgMusic=new GreenfootSound("xyz.mp3") ;//if wav, then write.... ("xyz.wav") ;
   bgMusic. playLoop() ;
}
You need to login to post a reply.