How do I stop music from looping?

Fill this out this info to make it easier for the community to help you! If you don’t fill out this information, your post may be deleted or removed.

What Wick Editor Version are you using?
I am using candlestick

Describe the Problem
When I want the music to stop it layers with the other music

What have you tried so far?
I tried to do
playSound("Light-Lance.mp3",{loop:false});
But it doesn’t work and keeps playing

your code looks fine, so in theory it shouldn’t be looping.

can you run this project and see if it works properly?

My Project12-31-2025_17-01-27.wick (9.8 KB)

I mean something else is happening, this is basically what’s happening
My Project12-31-2025_20-07-46.wick (1.5 MB)
Start at frame 1
Press q to continue

so it looks like you want MidnightOwl.wav to continue playing, but stop looping when you go to the next frame.

the reason your current version doesn’t work is that on the second frame, you’re playing a new audio asset independent from the looping one. setting the second audio to loop: false doesn’t actually do anything to the one that has loop: true, so the looping one just keeps going.

you’ll probably want to use WickSound. this way, you have more control over the audio, and you can actually turn off the looping on the audio that you had previously set.

i modified the project to use WickSound on MidnightOwl.wav, and all it’s doing is setting loop to true on the first frame and then setting it to false on the second.

My Project12-31-2025_17-12-43.wick (1.5 MB)

(let me know if you have other questions or if this isn’t what you wanted)

It still doesn’t work, it continues playing and I am also using candlestick embedded into Google sites for an extra save slot.

do you want the audio to stop immediately when you go to the next frame?

and i’d also advise trying candlestick in its normal form, in case google sites does something weird (which, to be honest, it probably does).

yes

go to the project i sent and change project.midnightOwl.loop(false); to project.midnightOwl.stop(); on the second frame, which should be what you were looking for