GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to make a only closed music setting?

WeiyuWeiyu Posts: 215Member, PRO
edited October 2016 in Working with GS (Mac)

Hello everyone.
I have problem about music setting.

When I closed the music, music and sound were closed at the same time
I just want to closed music.

Could anyone tell me how to make a only closed music setting?
Please help me :'(

This is my prototype.

P.S game.music = integer

Comments

  • SocksSocks London, UK.Posts: 12,822Member
    edited October 2016

    This is not answering your question (you've not provided the actual code that plays the audio/music, so all people can do is guess), but there is a simpler way of doing the above code.

    When touch is pressed:
    ....Change music.volume to 1-music.volume

    No need for the extra rules and the attribute game.music.

  • WeiyuWeiyu Posts: 215Member, PRO

    @Socks said:
    This is not answering your question (you've not provided the actual code that plays the audio/music, so all people can do is guess), but there is a simpler way of doing the above code.

    When touch is pressed:
    ....Change music.volume to 1-music.volume

    No need for the extra rules and the attribute game.music.

    That is a good idea.
    Thank you for your answer :D

Sign In or Register to comment.