Scratch Silver III
Scratch Silver II
SCRATCH SILVER I
SCRATCH GOLD III
1 of 3

3.02 Clone shapes to make a pattern

Clone sprites to create a pattern.

Open the Scratch starter project. Scratch will open in another browser tab.

You should see a shape sprite that looks a bit like a flower petal.

You will use my blocks to create a pattern with this shape. You may remember creating my blocks to organise your code in Nature Rover, and to repeat the same code in Puzzle Room. My blocks can also be used to reuse actions in a different way.

Go to My blocks and name your blocks (we have called it pattern:). Add repeat as a label to identify the first input or what programmer call a parameter. Then click “Add an Input” to actually create the parameter called repeat.

To design how a pattern is made, the first step is to define pattern.

Drag the repeat parameter from define pattern into a repeat loop block.

You will now use clone blocks to make the same block appear a number of times. Make sure you also add code to change the size and position of the sprite, otherwise the sprites will be stacked on top of each other and you will not be able to see them.

Add some code into the repeat loop of your pattern.

Tip: Defining makes a general pattern outline. What you are creating now with my blocks is similar to creating a spirograph stencil; it is the tool and the pattern is later created by using it.

Create a pattern with your my blocks. Get the pattern to repeat a number of times when flag clicked.

Test: See what your pattern looks like by clicking the green flag to run your program.

You should see the beginning of a mandala pattern. Adding more parameters, or requirements, to your pattern will create the first part of your mandala.

×
×

Cart