Help with sound in an "if" block in Game Lab

(Game Lab - Code.org)
**The sound file, “biggie cheese.mp3” should play only when the two burger sprites overlap.
**As is, no sound plays. If I move the “if” block into the draw loop it plays when they overlap, but sounds terrible because it is repeating even when set to false.

**Moving the “if” block to the draw loop and setting it to false, adding a stop sound both before play sound and also trying it after play sound. If I play the sound outside of the draw loop and outside of the “if” block it plays normally, just not once inside the “if” block.

Hi @rebecca.campbell,

Sound in the draw loop is a common problem because you have to figure out a way to instantly make the condition false so the sound doesn’t repeatedly play. There are two good solutions in this post. Let us know if they don’t work for you or you have questions.

~Michelle