How to Keep the music going ( Music Logic)

MammothMammoth Member Posts: 640
edited November -1 in Working with GS (Mac)
Im having trouble keeping the music going from scene to scene. I have about 16 levels in my game and I have a level select menu. When I push any level I need the music to start playing. When you play the game from level one you go to the next level.

The problem is when you go to the next level the music restarts. Is there any way to get around this.

Also I have menu music as well.

Im sure there is a really easy work around. Im used to doing this in code.

if(!musicIsPlaying)
{
Play music
}

Thanks again :)

Comments

  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    You have to put Play Music behavior in the first scene, and delete any Play Music behaviors from any other scene. Than the music from the 1st scene will continue in the next scenes.
  • MammothMammoth Member Posts: 640
    I found a work around.

    1. Put the music player in level 1
    2. Make variable for music
    3. When selecting the level change the music variable
    4. Put a rule in to make sure that the music plays in other levels when the variable is active.
    5. When the home button is pushed put a stopped music.

    Its a hard work around. But it works.
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    seems like the only way unless u make only one scene with endless stage .
Sign In or Register to comment.