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

4.04 Sprite effects

You can make your character sprite and silly eye sprites change their Looks when you click on them.

A character and eyes with graphic effects.

Silly eye effects

Add a when this sprite clicked block to your Eyeball sprite.

Can you work out what code block you would put underneath to change your sprite’s eye colour when you click on the Eyeball sprite?

Change graphic effects when the sprite is clicked

If you want both eyeballs to have the same effect, you will need to copy your script to the Eyeball 2 sprite.

Copy code from one sprite to another

Character effects

Click on your character sprite in the Sprite list, then click on the Code tab.

Add the same script as you used to change the eye colour. Which graphic effects do you want to change for your character?

Choose: Choose an effect in the drop-down menu within the change color effect by block. Experiment with the numbers and effects until you have a change that you like.

Use graphic effects

An accessory

Now, add an accessory, such as a hat, that changes when you click on it — use the next costume block.

Choose: Add an accessory change or costume change of your choice.

Sprites with accessories.

Make a sprite change costume when clicked

If your sprite does not have a choice of costumes, or you want to add more, you can add any costume to a sprite.

Add a costume to a sprite

Test: Work on your sprites until they interact in the way that you want.

Tip: Try one change at a time and test what it does so that you can easily spot each change and undo anything that you do not like.

Debug:

If you add code to the wrong sprite, you can fix that:

Copy code from one sprite to another

If you need to, you can reset the graphic effects:

I don’t want these graphic effects

Test: Test your project again, but this time, make it full-screen so that you can see how it will appear to someone looking at it.

Run a Scratch project in full-screen mode

By making your project full-screen, you are seeing what you have made from the perspective of a user who is playing with your project. User interaction is important in digital making.

×
×

Cart