Brian's Man Cave Posted August 16 Share Posted August 16 I am working on a game that has intro music when the level begins, then leads into a tune that repeats throughout the level after that. I am not sure how to detect when the intro song is done before playing the next one. any suggestions on how to make this work? My attempt so far just ends up playing the repeating level music only and ignoring the intro music. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted August 16 Share Posted August 16 MUSIC.PLAYING Indicates if it's playing music, zero if isn't, non-zero if playing it. So you check this when you are playing the first song. if music.playing=0 then play the other song EDIT: Another way to do this is use the music jump statement. 1 Quote Link to comment Share on other sites More sharing options...
Brian's Man Cave Posted August 16 Author Share Posted August 16 9 hours ago, atari2600land said: MUSIC.PLAYING Indicates if it's playing music, zero if isn't, non-zero if playing it. So you check this when you are playing the first song. if music.playing=0 then play the other song EDIT: Another way to do this is use the music jump statement. Ah yes! Thanks that works. Quote Link to comment Share on other sites More sharing options...
carlsson Posted August 16 Share Posted August 16 For more advanced use, you might want to study an example I posted before:https://forums.atariage.com/topic/296741-intybasic-music-pause-resume-function/?do=findComment&comment=4362889 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.