Stuck on a sound problem

My student’s Interactive greeting card should play a sound when the candles go out but the sound just loops. Can someone help us out? I can’t figure it out. Link to code: Code.org - Game Lab

@nread,

Cool card! Very nicely implemented! On the current configuration, I don’t see it even being possible to get the sound to play because blowing out each candle only adds one to the sound variable and it takes 5 to trigger the sound.

However, since the sound is inside the draw loop, it will continually execute as long as the score is 5, so perhaps one solution would be to reset the score before exiting the conditional loop that plays the sound. Then, it would play just one time.

Hope this helps!

Mike

I love this card idea! Very well done!!