I have a game with some buttons, and a sound “button.wav” in my Desktop. Under GD3, in the game preview, always I move the cursor over a button, the sound “button.wav” is played. But in the compoiled game, the sound is played only one time and never again. I tried play different copies from “button.wav” for every button, different channels, stop the object before play again, pause and play after play the sound, but the sound is played only 1 time:
[code]At beginning of scene:
…Variable(sound) = 0
If mouse over Play_button and Play_button.Animation == 0:
…Play_button.Animation = 1
…If Variable(sound) == 0:
…Play sound “button.wav”
If mouse not over Play_button and Play_button.Animation == 1:
…Play_button.Animation = 0[/code]
Here is a basic scene with a button and a sound, maybe I’m doing something wrong, but sound works fine in GD3’s preview:
http://www.mediafire.com/?a39ca9a2qrpv9oj
EDIT: the link is for the *.rar file, I included the compiled *.exe. If images aren’t loaded in GD3: simply delete the images and import the three *.png images included in the rar.