I have 6 worlds but i want the music to stop playing at the 6th one. But how do i do this?
this is my current code for music
1 2 3 4 5 6 7 8 9 10 | public GreenfootSound testmusic = new GreenfootSound( "Testmusic.mp3" ); public Level2_1() { super ( 1280 , 736 , 1 ); testmusic.playLoop(); } |