Sound ON/OFF Button

jasonpbrucejasonpbruce Member Posts: 35
edited November -1 in Working with GS (Mac)
Hi All! I have 2 images for a sound icon.. one is off and on. I've watched the tutorial on how to do this but not sure if that only turns off the game music or the music and sound effects all together which I want it to do. Problem I'm having is when I press the button I want it to switch to the graphic of sound of and cut off all the sound completely... but I can't figure how to make it click on the new "nosound" icon I've generated using "change Image" attribute to turn back on the sound and switch the image back to the "soundon" icon. Any ideas? Thanks!

Comments

  • jasonpbrucejasonpbruce Member Posts: 35
    OH! Otherwise!! I completely forgot about that... thanks so much tshirtbooth! By the way I think your games are top notch! I'm trying to make a missile command game kind of like yours with multiple weapons =) Cheers mate!
  • jasonpbrucejasonpbruce Member Posts: 35
    Sorry to bother you again about this tshirtbooth.... I didn't see game.sound off attribute in the drop down menu... is that one I have to type in by hand? And the attribute "device audio music" and "device audio sound" I didn't find those either, do I manually type those in? Sorry, I'm just starting out in this.... again thanks for all your help mate, your tutorials are a lifeline for me =)
  • jasonpbrucejasonpbruce Member Posts: 35
    Oops sorry I found it.. doy! Thanks a million =)
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    the sound off attribute youll make youself

    and the device audio sound, youll see a device option in the dropdown for attribute. did you miss it by chance?
  • jasonpbrucejasonpbruce Member Posts: 35
    Sorry... I'm not 100% on the game.soundoff attribute and how to create it... I know I've seen it in one of your tutorial videos but not sure which one exactly. Can you tell me how to properly create that attribute to apply it to the sound button or send me a link to the vide that covers that? Thanks!
  • jasonpbrucejasonpbruce Member Posts: 35
    I did John thanks for helping me with my post... I'm just not sure if I'm doing the game.soundoff attribute corectly. Thanks for replying to my post =)
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    youll see an attribute tab at the top left. click that then click the plus sign to add a new attribute. call it soundoff, and you can make it a interger type
  • jasonpbrucejasonpbruce Member Posts: 35
    /Users/Jason/Desktop/Screen shot 2011-04-03 at 10.00.24 PM.png
  • jasonpbrucejasonpbruce Member Posts: 35
    Oops... I was trying to include a screen capture on here to see if the rules and attributes looked correct. Is there a way to do that on here?
  • calvin9403calvin9403 Member Posts: 3,186
    upload it to tinypic
  • jasonpbrucejasonpbruce Member Posts: 35
    Thanks Calvin

    Does this look correct?

    [IMG]http://i52.tinypic.com/2i2aj5z.png[/IMG]
  • jasonpbrucejasonpbruce Member Posts: 35
    Hmmm that didn't work... maybe wrong one to use... maybe this one?

    Image and video hosting by TinyPic
  • jasonpbrucejasonpbruce Member Posts: 35
    Sorry noob mistake =) I think I finallygot it but when I do preview and click the sound icon it switches but instantly switches back to origional soundon icon...

    Image and video hosting by TinyPic
  • jasonpbrucejasonpbruce Member Posts: 35
    Hehehe sorry tshirt... ok I have the ( in there now... had to hand type it in so I don't know if that is why it's still not working... when i do preview and click on it, still changes for an instant while the mouse button is pressed then switches back to soundon icon

    Image and video hosting by TinyPic
  • jasonpbrucejasonpbruce Member Posts: 35
    Oooooooh!! OK! Hehehehe sometimes programming is very picky on how you do things... again thanks so much for your help and patients. Hey tshirt... off topic here, any chance you would be willing to do a "work-in-trade" for your missile command tutorial? I'm a killer graphics artist but am complete crap at understanding the programming part even with the simplicity of gamesalad (if you didn't already notice)... judging from your games I doubt it cuz your games look awesome... but never hurts to ask... I'm just very broke. This is a sample of what I'm working on:

    Image and video hosting by TinyPic

    Just a thought =)
  • jasonpbrucejasonpbruce Member Posts: 35
    Hmmm ok got 2 rules now and it won't do anything when I click the sound icon... man I feel stupid right now

    Image and video hosting by TinyPic
  • jasonpbrucejasonpbruce Member Posts: 35
    Thanks a ton... file sent with support files
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Jason

    I think youare missing some knowledge of gamesalad fundamentals. I would suggest you start watching all these youtube tutorials, there is a ton of great stuff, including the answer to the main question of this topic.
    http://www.youtube.com/user/GameSaladCookbook

    then take a look at these demos, pick them apart, see how they work:
    http://gamesalad.com/forums/topic.php?id=11558

    if you spend some time and really focus on those, you'll have a great foundation on how to work with GS.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    jonmulcahy said:
    Jason

    I think youare missing some knowledge of gamesalad fundamentals. I would suggest you start watching all these youtube tutorials, there is a ton of great stuff, including the answer to the main question of this topic.
    http://www.youtube.com/user/GameSaladCookbook

    then take a look at these demos, pick them apart, see how they work:
    http://gamesalad.com/forums/topic.php?id=11558

    if you spend some time and really focus on those, you'll have a great foundation on how to work with GS.

    +1

    But hey thats some nice artwork.
Sign In or Register to comment.