How do i start playing a song from a certain part?

Hey!

I wanted to ask something, how do i start playing a sound from a certain part?

For example, im in a level and there’ s a song playing, and when i pause, the song stops, the thing is, can i resume the song from where it was, or i can’t?

I want to know because, for example, in a rhythm game, if you pause, if you unpause you continue from where you left the song in.

Is there a way to do it or not?

Nope. At least not a wick-built-in. @pumpkinhead might know some other ways using js.

wickeditor uses howler.js
that means that you can use all howler methods inside your projects
here the docs:

I found it’s the most powerful way to manage audio in your wick project
at present I’m a little busy
I’ll do a project to show you better later

ok check this project
My Project1-5-2021_4-00-55PM.wick (3.7 KB)
you also need this audio
youngFrank.wav.zip (2.0 MB)

You have to export this project as html
Put on a http server and have the audio (.wav) file in the same directory as your html
Opening through http (wont work on local files due to audio object restrictions) you’ll ear the audio and you can use the buttons to stop it, replay from start or play it from a specified time
you can also change volume and such but this is not in this example
check howler.js docs for all methods

2 Likes

Wait, so this means that i can use all the code that’s in the page?
Or there are some Scripts that can’t be used?

I did not tried all howler.js methods but it could be that all would work
In a game I recently made I used volume control so it is definitely possible
dont know about fade in, sound sprites, sound groups and all other great howler features
I guess you’ll have to try by yourself