Jump to content
IGNORED

Intro music and level music


Recommended Posts

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.

 

 

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...