Make the silly eyes! Each eye needs to be a separate sprite so that it can move separately.
Use the Paint option to create a new sprite.
The Paint editor will open, which will allow you to create your Eyeball sprite’s costume.
It is really important that:
Choose: Draw an eyeball or start from a round sprite.
Name your sprite Eyeball
in the Sprite pane.
Drag the Eyeball sprite to position it on the Stage, and change its size to fit your character.
Now, make the eyeball look at the mouse-pointer
so that the user can interact with your project.
User means the person using the project (not just making it), and user interaction is how the project reacts to the user doing things such as moving the mouse and clicking on the screen.
Add a script to set the rotation style
to all around
to make the eyeball point towards the mouse pointer
forever
.
To add another eye, right-click (or on a tablet, tap and hold) on the Eyeball sprite in the Sprite list and choose duplicate.
Test: Click on the green flag and test your project. Do the silly eyes follow your mouse pointer as you move the mouse around?
Tip: You don’t have to keep the mouse pointer on the Stage. The eyes will follow your mouse pointer as you carry on coding in Scratch.
Debug: You might find some bugs in your project that you need to fix. Here are some common bugs:
Make sure that you have added the code to the Eyeball sprites and clicked on the green flag. Your code will not run until you click on the green flag.