I'm adding music to the main menu and I want it to play through the StartScreen, LevelSelector and Guide without stopping. I noticed that if you simply playLoop(), it doesn't stop when you switch the world and that's exactly the effect I wanted, but every time I come back to the world which initially played the song, a new one is initialised and the song starts for a second time over the first instance. How could I simply add the menu music without it starting over again and again and be able to remove it later?
This is how I tried to implement it: It should be removed only when a level is chosen in the LevelSelector.
if(!bgMusic.isPlaying()){bgMusic.setVolume(50);bgMusic.playLoop();}
