Alarm App (the Alarm Is Triggered by Clicking on the Spacebar and Stops With the Down Arrow)
by prof-minaudo in Teachers > 5
145 Views, 0 Favorites, 0 Comments
Alarm App (the Alarm Is Triggered by Clicking on the Spacebar and Stops With the Down Arrow)
Creating an alarm with Scratch.
Coding Project.
Create scripts with Scratch so that when the lever is opened using the Spacebar the alarm will go off (for this connect MakeyMakey to a "red" chili pepper), instead, to stop everything just select the down arrow (green/yellow chili pepper ).
**************************************
Creare gli script con Scratch facendo in modo che quando la leva sarà aperta tramite la barra spaziatrice scatterà l'allarme (collegare per questo MakeyMakey a un peperoncino "rosso"), invece, per fermare tutto basterà selezionare la freccia in giù (peperoncino verde/giallo).
Supplies
Design the background and the lever.
Two lever designs will be needed (on/off).
****************************************************
Saranno necessari due disegni di leva (on/off)
Scripts
Create scripts in Scratch.
Add MakeyMakey Extension.
*********************************
Crea script in Scratch.
Aggiungi l'estensione MakeyMakey.
Test Operation
Click on start to launch the App (green flag).
With the lever in the "open" position the alarm will sound (Spacebar), pressing the down arrow will close the lever and stop the sound.
You can then change the controls as you wish.
*****************************************************
Fare clic su start per avviare l'app (bandiera verde).
Con la leva in posizione "aperta" suonerà l'allarme (tasto spazio), premendo la freccia verso il basso si chiuderà la leva e si interromperà il suono.
Potrai quindi modificare i controlli come desideri.