[SOLVED] Toggle button with 2 actions?

Hello o’ great forums, I come to you once again seeking your wisdom. So I have this mute volume button. I want to make it so when you press it mutes all sounds, which I currently have working just fine. But I want to make it so once its pressed again it unmutes the sounds. Any help is welcome :slight_smile: thanks.


image
image

You use variable
And you use toggle action for that variable
And depending on variable state you either play music or stop music

1 Like

This video will be helpful I used it to make a mute button on my game

1 Like

Thank you for your help!

Thanks for your help, but i cannot find the toggle boolean value anywhere.

It’s under actions. “Change variable” and then it gives the option to set to true, false, or toggle.

1 Like

This should help if you need to see how it’s done.
It has the events I used too, though they may not be optimal.

1 Like

@Cr4ftyLeaf , You don’t need a boolean variable to toggle volume on and off. It can be done with one event, just make sure the “volume on” image is animation 0, mute image is animation 1 and the initial volume is 100:

2 Likes

Oh hey, do you know how to setup 3D sound?
I’m on the brink of tears here.

1 Like

I’ve replied in the thread you have for it.

2 Likes

Thank you for your help!

Thank you for your help and suggestion!