Mathematics Scratch Geography
Advanced
60 mins
Teacher/Student led
+70 XP
What you need:
Chromebook/Laptop/PC or iPad/Tablet

Volcano

In this lesson we will make a volcano smoke, rumble and then erupt with lava. We will create the sprites for the smoke and lava and use messages to time when everything happens.

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 - Create a new Scratch project

    Create a new Scratch project and delete the cat sprite.

    scratch.mit.edu

    2 - Colour the backdrop blue

    Colour the backdrop blue by following these steps.

    1. Click the Convert to Bitmap button.
    2. Select the colour blue in the Fill tool.
    3. Click on the Paint Bucket tool.
    4. Click on the backdrop to change it's colour to blue.
    5. Click on the Convert to Vector button.


    3 - Add the volcano sprite

    Included with this lesson is a volcano picture that we're going to upload into our Scratch project. To first download the picture file onto your computer and then upload it into your project.

    The volcano sprite will upload into your project and appear in the stage area. Drag the volcano to the bottom of the stage area.

    We will make the volcano smoke when we press the space bar. Add the following code to the volcano sprite:

    whenspacekeypressedbroadcastsmoke



    4 - Paint a new smoke sprite and create costumes

    To simulate smoke coming from the volcano we're going to paint a new sprite. Click on the 'Paint new sprite' button (the paint brush highlighted in yellow) and follow these steps:

    1. Click the 'Convert to vector' button.
    2. Click the Ellipse tool.
    3. Select the 'filled in' option.
    4. Select a gray colour.
    5. Draw a sideways ellipse in the center of the editor.
    6. Right click on the costume in the costume list and duplicate the costume 3 times.
    7. Change the colour of these other costumes to be different shades of gray using the paint bucket tool.


    5 - Make the volcano smoke

    To make the volcano appears that smoke is coming out of it we will create copies of our newly painted smoke sprite and make them float out of the top of the volcano. This will happen for a random length of time and then we'll send the 'shake' message which will tell the volcano to start shaking.

    Add the following code to the smoke sprite:

    Set it up

    1. events when clicked 
    2. looks hide 

    When it receives 'smoke' message

    1. events when I receive [smoke] 
    2. motion go to x: 0 y: 0 
      (replace the x: [0] and y: [0] numbers with the position just at the tip of your volcano. You can get this by putting your mouse pointer just above the volcano and looking at the x and y values that appear just under the stage area)
    3. control repeat 10 
      (replace [10] with operators pick random 20 to 50)
      1. looks next costume 
      2. control create clone of [myself] 
      3. control wait 0.2 secs 
    4. events broadcast [shake] 
      (to create a new message click on the black arrow and then 'new message...')

    When it starts as a clone

    1. control when I start as a clone 
    2. looks show 
    3. looks set size to 100 % 
      (replace [100] with operators pick random 50 to 120)
    4. motion point in direction 90 
      (replace [90] with operators pick random -5 to 5)
    5. control repeat until  
      (set sensing touching [edge] as the condition)
      1. motion move 1 steps 
      2. looks change size by 1  
    6. control delete this clone 

    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 Coding Ireland. 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