Playing Music on the Menu Screen?

ShineHouseGamesShineHouseGames Member, PRO Posts: 100
edited July 2012 in Working with GS (Mac)
So, I'm adding music to my game, and I want to to continuously play throughout all the pages within the menu system.

How can I make the music not start over again when returning to the menu (which already has a -play music- behavior)?

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited July 2012

    @Evanberger5

    Hi, make a game boolean, let's call it MusicStart.

    In the Rules to play the music for the first time in the menu page, amend as follows:

    Rule: When game.MusicStart is false
    Play Music
    Change attribute MusicStart to true

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • thelogobarthelogobar Member Posts: 93
    I have my music start playing on a splash screen, thats where I load all the other bits and bobs. That way the music is continuously playing once past the splash.
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Hi there,

    I also have a scene that pops up right after my splash screen. It only takes a second to load out of - this scene starts my music. This way, the music continues to play throughout your game, without it starting over. If you close the app in multitasking, it will restart your app which in return, will take you to that scene again and restart your music.
Sign In or Register to comment.