How to make a only closed music setting?

WeiyuWeiyu Member, PRO Posts: 215
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.Member Posts: 12,822
    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 Member, PRO Posts: 215

    @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.