Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Goot on Fri 27/08/2004 06:04:32

Title: Play sound on score not working
Post by: Goot on Fri 27/08/2004 06:04:32
I have this really weird problem. I've set Play Sound on Score to 0, but whenever I call GiveScore(x); it doesn't play the sound. At first I thought it might be because the game is blocked afterwards, but even if it's the only thing in the script, it doesn't work. The weird thing is, when I do PlaySound(0); it works. I tried using the normal interface, without scripting, just doing game-add score and it still didn't work. Does anyone know why this might be happening?
Title: Re: Play sound on score not working
Post by: Gilbert on Fri 27/08/2004 06:10:57
Try using a different sound # for that purpose, like "Play sound on score 1", and see if it works.

It's possible that the engine interprets 0 as not using that feature, in that case I'm not quite sure if it should be regarded as an engine limitation or bug either.
Title: Re: Play sound on score not working
Post by: Goot on Sat 28/08/2004 06:41:48
Thanks. That worked.