Make a sound block stop

Good Afternoon,

I am looking for some assistance with a student’s interactive card. The student wants the plane to make a sound only when the space bar is pressed down once and stops as soon as the spacebar is lifted. They tried using an if statement then else stop sound block and it did not work. I have placed the link to their card below. Any assistance would be greatly appreciated.

Thank you again,


1 Like

Try this code:

  if (keyWentDown("space")) {
    playSound("sound://category_nature/game_rain_loop_2.mp3", false);

1 Like