if you click on my game, sketchy mechanic, you can see an error on screen whenever you try to load it, but that isnt in the application version. how do i fix it?
public static GreenfootSound bossMusic; public << Class name here >>() { // ... if (bossMusic == null) bossMusic = new GreenfootSound(<< String filename here >>); bossMusic.playLoop(); // ... }
if (<< Class name here >>.bossMusic != null) bossMusic.stop();