Sound On / Off How Too ?

JelJel Member Posts: 319
edited November -1 in Working with GS (Mac)
Please can someone tell me how you can set the sound to turn on or off in a settings menu

Thanks in advance.

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    It's pretty simple if you use attributes

    I created an attribute called Sound, I have a button in my settings menu that changes the value from 0 to 1. Then whenever I have an object or action that plays a sound I created a rule that says

    if game.Sound = 1
    play sound
  • JelJel Member Posts: 319
    That's going to create a lot of rules is there no way of turning off the sound globally ?
  • JelJel Member Posts: 319
    Hi tshirtbooth,

    Thank you for all your help so far on my project. Can you help me a little more with the above.

    I've created a Game Attribute called Sound then on my Sound On/Off button in my settings menu I create a rule with attribute - game.Sound = ???

    Sorry if I'm being dumb

    Cheers, Jel
  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    Cheers goes to t-shirt booth...worked a treat for me...
  • WeswogWeswog Member Posts: 1,171
    Here is a link to a Sound Off Sound On Tutorial link I made just for extra help
    http://gamesalad.com/game/play/29372

    Cheers, Weswog
  • BeyondtheTechBeyondtheTech Member Posts: 809
    You can do away with the Rule and just use the Play Sound Behavior, using the game.Sound Attribute as the volume. You won't hear anything with 0, and 1 will be the loudest setting (and of course, the iPhone user can always adjust the device volume with the side controls).
Sign In or Register to comment.