Intro to Scratch: Lesson 3

Powerpoint for Teacher Use

What you will learn:

  • Programming Concepts
    • The Pen tool

 The Pen Tool

  • Clears any pen marks     
  • Makes a copy of your chosen sprite 
  • Pen down makes marks on the paper 
  • Pen up prevents the pen from making a mark 

Step 1:Clearing the Stage

To stamp sprites around the stage you first have to clear the stage. Step 1 will help you set up the block of code that will do this.

*In previous Lessons you learned about the whengreenflagclicked button, this is always the first button that we place when we start a new block of code. *

  1. In the  tab grab the whengreenflagclicked  and drag it on to the dark gray “code table.” This button starts the code
  2. In the  tab grab the  block and place it on the code table. This button clear the stage.
  3. In the  tab grab the and drag it to the code table. This will change your sprite back to its original color.
  4. Your code block should look like this: 

Step 2: Stamping the Sprite

This will stamp the sprite in a circular motion on the stage.

  1. In the  tab grab the  button and place it on the code table. This button makes any code inside it happen over and over again.
  2. In the  tab grab the  button and place it on the code table inside of the . This rotates your sprite 15 degrees.
  3. In the  tab grab the  button and place it on the code table inside of the . This stamps a copy of your sprite on the stage.
  4. Your code block should look like this: 

Step 3:Gliding Sprite

This makes your sprite glide around the stage as it stamps. In this step we will use the  to make our sprite glide randomly around the stage.

  1. Grab a  and a  and place it on the code table.
  2. In the  tab grab the  and place it on the code table.
  3. In the Operators tab grab two of the and place one inside of the white bubble after x, the white circle should glow  when you bring the left side of the  of the circle.
  4. Take the second  and place it in the white bubble after y.
  5. Change the numbers in the  after x to -240 and 240. This is because the stage is 480 pixels wide.
  6. Change the numbers in the  after y to -180 and 180. This is because the stage is 360 pixels tall.
  7. Your code should look like this: 

Step 4: Clearing the Stage

This will clear the stage every 10 seconds.

  1. As always start the block of code with 
  2. Add a  underneath the 
  3. In the  tab grab the , change the 1 to 10 and place it inside of the 
  4. Find the  and place it in the 
  5. Your code will look like this: 

If you are a teacher and would like to use this lesson click here for the powerpoint

Advertisements