How to stop Background Music when something is clicked?

How do I stop background music when I click something? I’ve been trying to work on a project and I need help with this. Can anyone help?

Can you give me a link to the project so I can see if I can help.

Use the click event, then put the coblock CoBlocks_Scene1_CoSpace (1) inside this event after you select the sound you want to stop or select all sounds.

1 Like

Ok. Thanks! This helps a lot!

Isn’t the Stop sound block only on the sounds used on codes?

It doesn´t work. I try many different ways.

What is wrong?
Thank you

It works. Have you used the play block above? you should have the same sound name as attribute.

Feel free to share a remixable cospace of your code to investigate more.
I hope it helps.

1 Like