Hi,
I wondered if it was possible to change if else if in switch in this kind of code? I shall like relieving the code.
if (Level.level <= 0) { setBackground(new GreenfootImage("Backgroundtutorial.gif")); // Le lvl 0 a l'image de Mountains en background. level0.playLoop(); //La musique sympa pour le niveau 0. } else if (Level.level <= 6) { setBackground(new GreenfootImage("Backgroundtuto.gif")); // Le lvl 0 a l'image de Mountains en background. level0.playLoop(); //La musique sympa pour le niveau 0. }