About Music and Sfx HELP

kajutokajuto Member Posts: 314
edited March 2012 in Miscellaneous
Hi everyonez!!!! recently i made a system menu, which i have a music in the background for all the menu and also a music background for inside gameplay, i already have a on/off button made by the tutorial of T-Shirtbooth, but how can i turn off the music from the system menu or/and the music inside gameplay ???

Comments

  • POMPOM Member Posts: 2,599
    i already have a on/off button
    If you have an on/off switch so what is the problem? just place another one in your 'pause' screen ..

    Photobucket Roy
  • kajutokajuto Member Posts: 314
    oka...let me explain, in my system menu function like that Main Menu>World Menu>Level Menu each time i go from Main Menu to Level Menu the music continue, which it fine. Also in the Main Menu have a Option Button( that goes to Option Menu) and so on...the music continue the next scene, which it fine too, in the gameplay i have a pause button to go back to level menu and the music continue where it left off , but when i turn the music OFF, the Main Menu to Level Menu it's fine,but after i come back from the gameplay to the level menu the music start to play and then i go back to the main menu the music is OFF, instead of like other game, when i turn OFF the music it will not start to play until i turn it ON
  • POMPOM Member Posts: 2,599
    edited March 2012
    @kajuto
    In EVERY behavior you have for "play music" , you need to wrap that behavior in a rule that says :
    When "allow music" IS ON
    Play music .

    This way the music will play only when its "ON"

    Photobucket Roy
  • kajutokajuto Member Posts: 314
    that mean i have to create a attribute of Boolean called Allow Music and in the behavior i set it if it on or off, right?
Sign In or Register to comment.