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?


1 2 3 4 5 6 7 8 9 | public static GreenfootSound bossMusic; public << Class name here >>() { // ... if (bossMusic == null ) bossMusic = new GreenfootSound(<< String filename here >>); bossMusic.playLoop(); // ... } |
1 | if (<< Class name here >>.bossMusic != null ) bossMusic.stop(); |