I'm trying to cycle between 2 theme songs during gameplay and for some reason the first song just loops continuously.
I know the problem isn't my code because I'm just using PLAY MUSIC and still when the song ends it just starts back up again. Even when I try to add code to check if MUSIC PLAYING(1) = 0 it doesn't detect the end of the song, it just keeps looping.
Here's a quick test I did (just subsitute your own .it or .midi file), this should work but doesn't:
CLS
LOAD MUSIC "add_theme.it",1
PLAY MUSIC 1
song_playing = 1
DO
IF MUSIC PLAYING(1) = 0 THEN song_playing = 0
TEXT 0,20,"SONG PLAYING = " + STR$(song_playing)
SYNC
LOOP
Using PLAY MUSIC means the music will play once and then be over, correct?
Unless someone has an answer for this I'm going to have to create a
song_length variable for each song in the game and cycle music that way. Is this a known issue in DB Classic?