wow, that's slow loading. But well done on getting it up there 🙂
People reported on the demo that music took a while to start playing.
It worked. But first time it crashed saying error loading GameFont or something like that. There were sounds but no music.
Yeah just tested Mine again yours works fine with sound on my PC. Mine does not. Though mine on my tablet works fine with sound. A bit strange lol.
on windows edge sound play instant on firefox and chrome so much delay... i run the game and ten minutos and nothing of sound on that browsers
problem here is that the android export convert sounds to m4a and the js files are requesting .ogg
[IMG]https://i.gyazo.com/36920556acec4797e7befe62722db152.png[/IMG]
bug maybe?
if you copy manually all ogg sounds to the audio folder you fix the problem
I would suggest you use Windows Export. That is what I did. The music files might come out right.
or you can change the source file
[IMG]https://i.gyazo.com/6883a6622287d928ec42ad49c6583201.png[/IMG]
the blue colored line, I change OGG for m4a becose the publish function don't copy ogg music files and sounds to the proyect output
Just tried it in Vivaldi and sounds play instantly. It's rather slow in Firefox, though.
The staff was saying you should not export as mobile for html5 support. Also I would avoid changing the core files as much as possible as that could make a mess later.
Thanks for the info. Good tips friend. I'm not planning to make a browser game really anyways more of a test 🙂
Beyond this, no sense that the core game check a function that returns results using sound files that are not copied into the project.
wizmaster - is that a bug in the code?
Why would it say "if this, then m4a, otherwise, m4a"?
oh - never mind - I see that's a change you've made.
Yes, please don't do that. Find out why it's not working (confirm that it's not because you've used the wrong export option) and fix it. Don't change correct code to be incorrect to get around an issue that's caused by something else.
original code says
AudioManager.audioFileExt = function() { if (WebAudio.canPlayOgg() && !Utils.isMobileDevice()) { return '.ogg'; } else { return '.m4a'; }};But not ogg's files its copied into the proyect when you export for android/ios
[IMG]https://i.gyazo.com/bc2b19f557a5ff8bee2d9f985952456d.png[/IMG]
no, isnt a bug, the android export, dont copy ogg files becose are dont needed for a mobile device.
Android and iOS are mobile devices, so should use the .m4a files. I think if you want to play in browser you are using the wrong export option.
So in short, if you're exporting for Android/iOS, don't try and open it in a browser? Is that the gist of it?