Project 04 of 35  ·  Scratch Programming  ·  Level 1
Level 1

Silly Eyes

Create a funny character whose eyes always follow the mouse pointer wherever it moves.

🍓  Open on Raspberry Pi Projects  ↗ Opens the official Raspberry Pi Foundation project — includes starter files and full step-by-step guide

What You Will Build

Create a funny character whose eyes always follow the mouse pointer wherever it moves. Follow the guide below to build the project, then open the official Raspberry Pi page for starter files, worked examples and extra help.

🍓 This project is on the Raspberry Pi Foundation website. Click the orange button above to access the full guide, starter Scratch project and extension activities on projects.raspberrypi.org.

What You Will Learn

  • Use point towards [mouse-pointer] to track the cursor
  • Use a forever loop to update direction continuously
  • Create custom sprites using the Scratch drawing editor
  • Separate sprites for each eye that move independently
  • Add interactive reactions when the character is clicked

Step-by-Step Guide

  • 1Draw or import a character sprite with a circular body.
  • 2Create a separate sprite for the left eye (a white circle with a dark pupil).
  • 3Create a second sprite for the right eye in the same way.
  • 4On the left eye: add when 🏳️ clicked (green flag) then a forever loop.
  • 5Inside the loop, add point towards [mouse-pointer].
  • 6Do the same for the right eye sprite.
  • 7Position both eye sprites on the character's face using the x/y fields.
  • 8Add when this sprite clicked on the main character: switch to a surprised costume.
  • 9Test by moving the mouse around — both eyes should track the cursor.
  • 10Add a say block when clicked: Watching you!

Extension Challenges

Finished the main project? Push further:

  • Add blinking: switch between open and closed eye costumes on a timer.
  • Make the eyes widen when you move the mouse very fast using speed sensing.
  • Add a third eye that appears when you press the spacebar.