Sound PLaying over and over and over....

belleechbelleech Member Posts: 34
edited November -1 in Working with GS (Mac)
Im having this problem on my main menu. I play this sound but when I got to the help menu etc then go back to the main menu the sound loop starts all over again instead of just resuming. Is there anyway I can have the music play looping but without starting over when I got back to the Main menu?

Best Regards,

Belleech

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    it seems like you are telling the music to play on the main menu scene, so every time you go there it starts playing again.

    You could create a global boolean game attribute called "musicPlaying".

    Wrap your Play Music behavior in a Rule, like this:

    Rule
    When game.musicPlaying = FALSE
    Change Attribute game.musicPlaying To: TRUE
    Play Music
Sign In or Register to comment.