I'm having a little problem with playing audio in Firefox.
What I'm trying to do is simply play an explosion sound on collision. But the problem is, when collision is happening for the very first time, the explosion sound is played about two seconds after the collision but only for the first time. After the first time the sound is playing fine but never the first time. It is not a big deal but I just don't really like it and I would like to fix it if possible.
I was searching the forum and I tried all the suggestions I found:
-tried exporting the project but didn't solved the problem, I get the same result
-the sounds are preloaded in the first layout and I go to the next layout after all the sounds are preloaded
-the sounds are stored in the sound directory
-deleted the duplicated sound files created by the importer and left only a single sound file (.ogg)
-my browser is up to date
Nothing worked. The only thing I haven't tried yet is to upload the exported HTML5 game to a host such as itch.io...
If I preview in Google Chrome, it works, no problem there, the sound is playing as it should. I have this problem only in Firefox.
Is there anything else I can try to fix this or it is down to Firefox (and Construct 2) to provide better support and compatibility?