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

2021/7/22

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

Pabloseb_ Pabloseb_

2021/7/22

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

2021/7/22

#
//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.