Ok, a minor thing I know, but everything else in my game is working fine and I just want to fine tune things like this.
Rather than having a single track looping over and over again, I wanted to load 2 or 3 music tracks, and have them play one after the other.
However, I can't get this to work. Here's an example of what I tried most recently:
rem Load music
LOAD MUSIC "music\game_01_electric_hellfire.mp3",2
LOAD MUSIC "music\game_02_Bite_the_Bullet.mp3", 3
rem play EH-BLS
PLAY MUSIC 2
rem play other music
if music playing(2)=0
PLAY MUSIC 3
endif
So, what I *thought* I'd coded was an if statement telling DB that if the value of music 2 playing was zero (ie. the music isn't playing) then play music 3.
I assumed that once music 2 had stopped playing, it's playing value would be zero and it would start the third music track.
Instead, what happens is the track stops playing but music 3 doesn't start playing.
I then tried assigning manual changing of the music to two random keys (just to test the conecpt)
If inkey$()="m"
STOP MUSIC 2
PLAY MUSIC 3
endif
If inkey$()="n"
STOP MUSIC 3
PLAY MUSIC 2
endif
And here, nothing happened when I pressed those keys.
So I'm wondering if anyone can help, not necessarily with the manual chaing by a key press, but an automatic playing of one music file once another has finished playing.
Thanks in advance.