I need some help... I got some music files to loop forever and it works, the only problem is that I can run it along side my game. Ill post the code for the music, but not the code ( as it is HUGE )
Song Code:
Code:
Song = {}
Song[1] = ("Songs/Why.it")
Song[2] = ("Songs/monopoly2.it")
Song[3] = ("Songs/compare1.it")
pad = Controls.read()
for i=1, 9999 do
if i==1 then Music.playFile(Song[i])
Music.volume(128)
screen.waitVblankStart(9540)
i=i+1
end
if i==2 then Music.playFile(Song[i])
Music.volume(128)
screen.waitVblankStart(11460)
i=i+1
end
if i==3 then Music.playFile(Song[i])
Music.volume(128)
screen.waitVblankStart(13500)
i=i-2
end
end