
01-19-2012, 09:15 AM
First thing is to have a "while something is true" event. In that event, in the "while" section, add a method and call that method "MainMusic." In that method add your music in a infinite loop. Now, make a number variable of 1 and 0. In the logic of the event, make it "If (MainMusic) == 1" then it will do your event. Until that variable is 1, it will not play the music. To switch to victory music, make another method but call it "VictoryMusic" and make another even identical to the first except, make the number check for "== 2" so when the game is over, you can assign the variable the number 2 and have it play the second song, becuase the frist song will stop once the variable is changed. If you have no other songs besides those 2, then you can just have the variable set to 0 and have the second song play normally by dragging the function from the methods list on the left. Hope this helps!
Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
|