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

3.04 Set up your sprite

Set up your sprite to reset your mandala.

At the moment, your mandala patterns may appear to change each time, depending on the parameter values you use. Next, you will create a new my blocks, so that your mandala sprite always begins in the same state.

Use the My Blocks menu to create a new block called setup. The block should have four parameters: sizeghosty, and move. Don’t worry, you can change these or add more later.

When you make the mandala colourful in the next step, the ghost block will make the colours transparent so when the shapes overlap, you will get a colour mixing effect.

Now add some blocks to set the appearance and position of your sprite.

At the moment, your my blocks hasn’t been used, so there will be no effect on your pattern. Add code to setup, so the code will run as soon as the flag is clicked.

Test your code by clicking on the flag and observing the pattern that has been drawn. Then, change the values of the parameters until you have a pattern that you like.

The sprite (not its clones) is still visible; it can be hidden at the end, but will need to be shown at the start.

The shape sprite.
×
×

Cart