Repeat Intro
Using Repeat
Watch this video to learn about using Repeat in Scratch! Repeat blocks are very helpful, and we’ll be using them a lot.
Using Repeat Video
The REPEAT Block
So far, when we want to do something over and over again, it took a lot of work and a lot of blocks.
For example, to make the song below where we play the notes 60 and 62 over and over again, we need 8 pieces!
To make our work easier, we can use repeat blocks! Click on the “Control” tab in the middle of the Scratch window.
A repeat block can do a snippet of code over and over again. The number next to the word repeat tells us how many times we want to do the things inside of the repeat block.
Repeat – in a Song
Repeats in a song
We made an example song in Scratch. To see it, click on this link.
In order to see the scripts, click the “See inside” button at the top right corner of the Scratch project page.
We made two copies of the same song. The one on the right uses repeat and the one on the left doesn’t use repeat.
Try playing both songs to see how repeat works.
EXPERIMENT WITH REPEAT
Try to make a script that uses different numbers after the repeat. Here are some examples.
Repeat 3:
Repeat 1:
Repeat 0:
Try to put pieces before, after, and inside the repeat, like below.
Try making other scripts with repeat!
Don’t delete each script that you make. Leave them in the scripts area and use new blocks to make new scripts.
Hint: If you click on a block with the right button on the mouse (“right-click”), you should see “duplicate”, “delete” and “add comment” options. Select “duplicate” to make a copy of the block you clicked on and all blocks below that block. If right-clicking doesn’t work, you can press shift and then click to see the menu.
Repeats with 0 and 1
Repeats with 0 and 1
Now that you’ve tried repeats in Scratch, watch this short video to check if you figured everything out!
Repeats with 0 and 1 Video