Computer Science
Grade 3
20 min
Introduction to Scratch
Introduction to Scratch
Tutorial Preview
1
Introduction & Learning Objectives
Learning Objectives
Identify and use event blocks to start a script.
Create a sequence of instructions by snapping blocks together.
Use a 'forever' loop to make actions repeat.
Use an 'if-then' conditional block to make a decision.
Make a sprite appear to talk using 'say' blocks.
Use the 'ask and wait' block to get input from a user.
Have you ever wanted to create your own cartoon or video game? 🎮 Let's learn how to give instructions to a computer to make fun things happen!
In this lesson, we will learn how to program using Scratch. We will use colorful blocks that snap together like puzzle pieces to tell characters, called sprites, what to do. This is the first step to becoming a creative coder!
Real-World Applications
Maki...
2
Key Concepts & Vocabulary
TermDefinitionExample
SpriteA character or object on the screen that you can program.The orange cat that appears when you start a new Scratch project is a sprite.
BlockA single instruction for a sprite. Blocks look like colorful puzzle pieces.The blue 'move 10 steps' block tells a sprite to move forward a little bit.
ScriptA stack of blocks connected together. The computer reads the script from top to bottom.A 'when green flag clicked' block connected on top of a 'move 10 steps' block is a simple script.
EventAn action that starts a script. Event blocks are shaped like hats and always go at the top.Clicking the green flag is an event that can start your program.
LoopA block that makes other blocks inside it repeat over and over again.The 'forever' b...
3
Core Syntax & Patterns
Event-Driven Start
Every script must start with a 'hat' block (an Event block).
Your code won't run unless you tell it WHEN to start. Use blocks like 'when green flag clicked' or 'when this sprite clicked' at the very top of each stack of blocks.
Top-to-Bottom Sequence
Blocks in a script run in order from top to bottom.
The computer reads your instructions one by one, starting from the top block and moving down. The order you snap your blocks together is very important.
The Forever Loop Pattern
Place action blocks inside a 'forever' block to make them repeat.
To create an animation or a continuous action, drag a 'forever' block from the Control category and place the blocks you want to repeat (like 'move...
4 more steps in this tutorial
Sign up free to access the complete tutorial with worked examples and practice.
Sign Up Free to ContinueSample Practice Questions
Challenging
You want to create a score for a game that increases by 1 every time you click on a target. What must you create first to store the score number?
A.new sprite
B.new sound
C.variable
D.new costume
Challenging
A sprite has this script: 'when green flag clicked', 'forever { if <touching mouse-pointer?> then { hide } }'. What will happen in the project?
A.The sprite will hide and then show repeatedly.
B.The sprite will disappear permanently as soon as the mouse touches it.
C.The sprite will follow the mouse pointer.
D.The sprite will hide only when the mouse is clicked.
Challenging
To make a sprite ask "What's your name?" and then say "Hello, [Name]" (using the name you typed), which two blocks are most important?
A.'say' and 'think'
B.'when I receive message' and 'broadcast message'
C.'create clone of myself' and 'delete this clone'
D.'ask and wait' and 'join'
Want to practice and check your answers?
Sign up to access all questions with instant feedback, explanations, and progress tracking.
Start Practicing Free