Simon game in firefox acting like a kung fu movie

So, my simon game works just fine in chrome and edge with syncing of audio and simon highlights, but when ever It goes into “Show current simon sequence”, 40% of the time, the audio never plays or the audio is off sync. Has anyone else encountered this issue and is there a sound library that I could use instead of setInterval and new Audio().play() combo?

I think setInterval is screwing me.

Thanks.

You might consider using howler.js as your sound library - I was having similar trouble with my own Simon game (turns out there’s quite a few caveats when it comes to playing audio in browsers, especially on mobile devices), but that library took care of any issues I’d been having right away.

Good luck!

1 Like

Thanks!!!