Unit 3- Sound Bank in Lessons 14-22

Hi!

So I have a student making a game, and he wants to have it make a “trumpet” sound when you hit the “p” key. It will play, but it plays over and over, making this loud, unintelligible noise, as the every time the loop runs it replays it over and over.

How do we code around this??

TY!
Allison Braley

Allison,

The playSound block has a second parameter which is loop. For the block, make sure the first parameter is the mp3 file and the second is false (will not loop). You can always find examples if you mouse over the block and click on “see examples”.

Hope that helps!
Brad