Play a sound on click
Use a click handler to play one of the spriteโs sounds whenever the player interacts with it.
whenClicked(() => { startSound("meow");});Replace "meow" with the name of any sound added to the sprite in the editor.
whenClicked(() => { playSoundUntilDone("meow"); say("Done!");});Functions used
Section titled โFunctions usedโwhenClickedโ run code when this sprite is clickedstartSoundโ start playing a sound without waitingplaySoundUntilDoneโ play a sound and wait until it finishessayโ show a speech bubble