The Sound of Silence [Solved]

I'm working on games that play intro music in the start script. This works when the games are downloaded and run locally but not when playing online. You can see the effect in the test game:
http://textadventures.co.uk/games/view/wvjqmlnedu6g_brvapmb6a/intro-music-test

One workaround I've found is to put a 'wait' around the playing of sound but is there a better way?

wait {
  play sound (...)
  ...game introduction and other start code...
}

It works playing online for me.

However note that autoplaying music without a stop button will not work in some browsers, as part of design changes intended to stop annoying audio ads.
The wait presumably works because there's less restrictions if the sound is played in response to a user's click on the page.

Whether or not this works online isn't something you can easily solve, because it's a browser setting rather than something intrinsic to Quest. It depends on both which browser/OS the player is using, and how they have it configured.


Excellent mrangel! Thanks for the ultra-fast resolution of the problem. I'd convinced myself it must be a Quest issue as I'd had trouble with the 'wait' operation before and thought this was connected. I use Firefox which shows the problem, though perhaps that's just my settings, so a little more experimentation is needed. Everything is fine with Chrome and IE.


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

Support

Forums