Music Loop by Suicidal Sledder19th Jan 2007 2:38
|
---|
Summary Workaround the MUSIC PLAYING bug Description Ok you know that stupid MUSIC PLAYING() bug that doesnt let you play different musical tracks? This code works around it. It assumes you have 5 tracks of music and plays them in random order as soon as the last one finishes. Let me know if this helps! Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com `run this every loop music: if inkey$() = "M" for n = 1 to 5 if music playing(n) = 1 then stop music n next n endif if music playing(1) = 0 AND music playing(2) = 0 AND music playing(3) = 0 AND music playing(4) = 0 AND music playing(5) = 0 stop music 1 stop music 2 stop music 3 stop music 4 stop music 5 musicnum = rnd(4)+1 play music musicnum endif return |