1 00:00:00,000 --> 00:00:00,370 2 00:00:00,370 --> 00:00:03,620 >> DAVID MALAN: Suppose we want Scratch to keep meowing on his own without my 3 00:00:03,620 --> 00:00:06,720 having to click that green flag again and again and again. 4 00:00:06,720 --> 00:00:09,400 Well, we can do that programmatically by using a loop. 5 00:00:09,400 --> 00:00:10,540 Let's start there. 6 00:00:10,540 --> 00:00:14,950 >> When green flag clicked, let's now go to the Control palette, where we can 7 00:00:14,950 --> 00:00:16,910 grab the Forever block. 8 00:00:16,910 --> 00:00:20,210 Now let's go to the Sound palette, where Play Sound awaits. 9 00:00:20,210 --> 00:00:22,650 And let's also give Scratch a moment to catch his breath. 10 00:00:22,650 --> 00:00:26,410 Under the control palette, we'll find Wait One Second. 11 00:00:26,410 --> 00:00:28,520 Now we click that green flag. 12 00:00:28,520 --> 00:00:31,815 >> [MEOWING] 13 00:00:31,815 --> 00:00:32,460 >> Hm. 14 00:00:32,460 --> 00:00:33,370 Not very natural. 15 00:00:33,370 --> 00:00:34,590 Meowing too fast. 16 00:00:34,590 --> 00:00:35,680 Let's stop. 17 00:00:35,680 --> 00:00:39,780 Let's this time increase that wait time from one second to two seconds 18 00:00:39,780 --> 00:00:42,290 and re-click that green flag. 19 00:00:42,290 --> 00:00:46,790 >> [MEOWING] 20 00:00:46,790 --> 00:00:48,040 >> Much more realistic. 21 00:00:48,040 --> 00:00:50,293