Can you constrain game volume to an attribute?

Hello Gamesalad Forums,

This is my first post on the forums so I ask for your patience. I am trying to set up sound control from a settings page that will control the sound across all scenes. My approach has been to create a volume button that starts the music then can be clicked to mute sound. I am having trouble constraining my game variables musicVolume and soundfxVolume to the devices audio output. Is this possible to do, or is there a much easier way of doing this that I am missing.

Thanks for your help,

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited July 2013
    Just a helpful hint. There are many great videos produced by myself and other to help you along. It's always a good idea to do a quick google search with gamesalad and a keyword or two of what you want to do. To get you started I located this for you.

    The Guru

  • Thank you, I have actually watched this a few times and had it working then when I would change scenes the next scene's volume button would revert to its on state whether the volume was on, as well as my slider would return to it's min position when the scene would load.

    Thanks again,
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    You need to code it to mirror you're game level attributes. Make sure you don't unlock the lock on the code or they will each be independent. Keep the prototype intact. Plus use game level attributes not scene level.
  • Thanks I am going to try to rebuild it using that technique.
Sign In or Register to comment.