top of page
Scratch Motion Code Block Part One

Week: 

Level: 

Content:

Details:

3

Beginner

Scratch Motion Code Block Part One

  • Introduction to the Code Tab, Motion Code Block Part One

  • Create a new project, and drag "Move 10  Steps" code block from the Motion tab and drop in the code window

  • Change "10" in the "Move 10  Steps" code block to 20, so it becomes "Move 20  Steps"

  • Drag the "Move 20  Steps" code block and move around, then drop the code block in a different location

  • Duplicate the  "Move 20  Steps" code block- Delete the duplicated "Move 20  Steps" code block- Zoom in and zoom out the "Move 20  Steps" code block- Add comment ("My first code") to the "Move 20  Steps" code block

  • Scroll down/ up , then click "Locate" button to locate the  "Move 20  Steps" code block

  • Drag "turn 15  degrees" code block from the Motion tab and drop in the code window

  • Combine the "Move 20  Steps" code block and the "turn 15  degrees" code block

  •  After combining the code blocks in above steps, now click the code block to see the cat moves 20 steps and turns 15 degrees. When the code block is clicked continuously, the cat character runs in a circle.

bottom of page