No sound playing in Gamesalad Creator (web)
I am new to GS creator. Use the web Creator with an Edu subscription. My game works all right, only any uploaded sound (.ogg, .wav and .m4a tested) won't play. Settings: volume 7, pitch 7, run to completion true, all else false.
Here's the game: https://www.palladio.net/enigma/
There should be a sound if you click the practice/test switch.
What am I missing?
Best Answers
-
gingagaming FREELANCE GS DEV Posts: 1,685
Safari doesn't support it. its a major bug which we are praying @adent42 will fix but I know he has a lot on his "all he can eat" plate.
The only work around I have found (and its a real pain if you have lots of sounds!) is to convert all sound files back into WAV files and them import them into your project as MUSIC files and not sound files. Then change your rules to play music files instead of sound files. as Safari does support music files Maybe if you nudge @adent42 he may stick supporting the native apple browser on his list. Every little helps and all that!
-
adent42 Posts: 3,170
So, Safari has a new feature where sounds won't play unless they are triggered by direct interaction. Sometimes the engine's game loop keeps sounds far enough from the triggering interaction that they are muted by default. You should be able to add code to the player HTML file to detect if you're in safari and sound isn't playing to show a button to "unmute" sounds.
Another possibility, if i remember correctly, is that the browser user agent is set to the device.name attribute, so you can detect Safari there and default your game to muted with a prompt to unmute.
Answers
Try a different browser. It makes sound for me in Firefox, but not in Safari. What kind of sound file did you use?
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
First off, you probably want to use this embed: https://embed.gsrca.de/p/95vv/G4YWMMR/play.html?mode=embed&s=560
Could you PM me your game's https://publish.gamesalad.com link so I can take a look? Thanks
When I try the linked sample in Chrome I hear the click sound.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
@jamie_c There are other sounds in the project, but they're not playing. I'm not sure if that's on purpose or if there's some kind loading error, so that's why I'm asking @palladionet for the original project to compare.
Thanks so far! Yes I had added other sounds to test, but only one is active.
I've checked on Chrome, and it plays there, and also on Firefox, but not on Safari.
So now I've uploaded all the sounds. Now I have another problem. Whenever I want to publish the game, it says one of the files is corrupt. I replaced it, now it called the WAV file an image and said it was corrupt. I deleted it and linked the actor to another sound, now it calls a completely different sound file corrupt.
What now?
And for later:
Any way I can make the sounds play on Safari?
btw Arthur is this the link you asked for http://arcade.gamesalad.com/games/156899 - not sure you need it at this time.
How did you get that embed link? It is not the one they suggested.
WAV problem solved. I converted to OGG and lower Hz rate, and it did the trick.
https://www.palladio.net/enigma/
That leaves the problem with sounds not playing on Safari. Any suggestions?
(and the way to construct the embedd link).
@adent42
Above you told me to use a different link for the embed without the gamesalad arcade frame. https://embed.gsrca.de/p/95vv/G4YWMMR/play.html?mode=embed&s=560 This link looks different from what was suggested in the publish/play page. How do you create this link?
And since we're at it: can you make the iframe responsive so it works on a mobile browser too?
Thanks!
The embed link generator are actually broken @adent42 maybe you can look at how they are generated. I always have to create my own
My dear Dentarthurdent, it really seems the salvation of the universe depends on you! But rest assured, the dolphins sympathise!