Sounds directory

Gng

Heyall

I have added sounds and music to my game. When I publish it, where do I put the audio files? How can the game automatically find the audio files directory?


Hello.

You can't.

You have to leave the audio files all loose in the main game folder (with the .aslx file), or else Quest will not include them in the published game.

Also, if I were you, I would avoid using the mp3 format. If they are mp3s, I suggest converting them to .ogg, because the ogg will play in any browser.

Quest desktop won't play mp3 from <audio> elements, but it will play them using play sound. But play sound won't work in the mobile player (last time I tried).

This is all because the browser built into the desktop version of Quest is so old. It's from when mp3 was still proprietary.


Gng

I see. They're in mp3 format. I think I can convert them online. Thanks for the tip!


You know... It's been a few years since I've messed with HTML audio.

In 2021, you couldn't autoplay audio at all on mobile. So the play sound Quest script didn't work on mobile. Things might have changed now, but you'll still probably hear from people that sounds won't play no matter what you do. Older devices behave differently than new ones, and different browser all behave differently too.

My best advice is to not use audio in an important way as far as the game is concerned without letting the player know it should be played only in the desktop version of Quest (or something like that).


This topic is now closed. Topics are closed after 14 days of inactivity.

Support

Forums