Scratch
Intermediate
45 mins
Teacher/Student led
115 points
What you need:
Chromebook/Laptop/PC or iPad/Tablet

Fish Tank Clicker

In this lesson, students will learn how to create an interactive fish tank using Scratch. They will learn how to make a fish sprite follow the mouse pointer, create clones of the fish, and make the clones swim at different speeds and sizes.
Learning Goals Learning Outcomes Teacher Notes Lesson Files

Live Class Feed

This is a live feed of the latest activity by your students on this lesson. It will update in real-time as they work on the lesson.
Load previous activity

    1 - Introduction

    In this lesson, you will create a fun and interactive fish tank on your computer.

    You will learn how to make a fish follow your mouse pointer and create copies of itself when clicked. These copies, or 'clones', will swim around at different speeds and sizes, just like real fish in a tank. So, are you ready to dive in and start coding your own fish tank? Let's go!


    2 - Create a new project

    Open the Scratch website and create a new project. Delete the cat sprite from the project.

    scratch.mit.edu


    3 - Add the Underwater Backdrop

    First, go to the backdrop library and select the Underwater 1 backdrop. This sets the scene for our fish tank.


    4 - Add the Fish Sprite

    Next, add the Fish sprite from the sprite library to your project. This will be the main character of our game.



    5 - Make the Fish Follow the Mouse

    In this step, you will make the fish follow your mouse pointer. The mouse pointer is the arrow or hand that moves when you move your mouse. Wherever you move your mouse, the fish will follow. This is done by using a loop that continuously updates the fish's position to the current position of your mouse pointer. Here is the code you need to add:

    when green flag clicked set size to (50) % forever go to (mouse-pointer v)

    Now, click the green flag to start your project. Move your mouse around the screen and see how the fish follows your mouse pointer. If it does, congratulations! You have successfully completed this step.


    Unlock the Full Learning Experience

    Get ready to embark on an incredible learning journey! Get access to this lesson and hundreds more in our Digital Skills Curriculum.

    Copyright Notice
    This lesson is copyright of DigitalSkills.org. Unauthorised use, copying or distribution is not allowed.

    Scratch is developed by the Lifelong Kindergarten Group at the MIT Media Lab. It is available for free at https://scratch.mit.edu
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more