Music change after the game end

mmmodelmmmodel Member Posts: 46
edited April 2013 in Working with GS (Mac)
Hey guys, i need a little help.
I made four musics for my game but when the game is over and back to the main menu scene i wanted that's the game change the music maybe with some random for this but i tried some rules but without success.
Anyone have one idea for this simple thing?
Thanks!

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Place an actor on your main menu scene with these rules:

    Stop Music

    Change Attribute self.musicSelection to random(1,4)

    When self.MusicSelection=1
    .....Play Music [music 1]
    When self.MusicSelection=2
    .....Play Music [music 2]
    When self.MusicSelection=3
    .....Play Music [music 3]
    When self.MusicSelection=4
    .....Play Music [music 4]

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • mmmodelmmmodel Member Posts: 46
    Tatiang saving the world, thanks again my friend.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    :)>-

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.