Getting  Started with Scratch

This is where you will build your code.

This is the stage.

This is where your sprites show. Click a sprite to open its coding page and stage.

  1. Go to Scratch and click Create to start a new project.

  2. You will see:

    • Stage (where your project runs)

    • Sprites (characters or objects)

    • Blocks (code you drag to create actions)

2. Basic Blocks and How to Use Them

A. Moving a Sprite 🚶‍♂️

  1. Go to Events and drag "when green flag clicked".

  2. Go to Motion and drag "move 10 steps".

  3. Click the Green Flag to run the program.

👉 What happens? The sprite moves forward 10 steps.

B. Say "Hello!"

  1. Add "when green flag clicked" (from Events).

  2. Go to Looks and drag "say Hello! for 2 seconds". Then click the yellow block with the green flag.

👉 What happens? The sprite displays a speech bubble with "Hello!" for 2 seconds.

C. Making the Sprite Move Continuously 🔄

Example 3: Move Across the Screen

  1. Add "go to x: -200 y: 0" (from Motion). Where does this place the cat?

  2. Add "repeat 20" (from Control).

  3. Inside the repeat block, add "change x by 10" (from Motion). Click the green flag.

👉 What happens? The sprite moves smoothly from left to right.

There is a problem. We need to start the cat at the left side of the screen before it says ‘Hello.”

Where should you move the go to x: -200, y:0 block to make that happen?

When you click the green flag, your cat should now __________________, then _________________, then_________________.

Challenge

~

Challenge ~

Add a backdrop to your stage.

  1. Go to the backgrounds in the lower right.

  2. Click the backgrounds icon.

  3. Choose a background.

  4. Run your code again.

D. Making the Sprite Respond to Clicks 🖱️

Example 4: Make the Cat Meow When Clicked

  1. Use "when this sprite clicked" (from Events).

  2. Add "play sound meow" (from Sound). Test your code by clicking the green arrow.

👉 What happens? The cat moves, says hello, moves again, and says, “Meow.”

Good job! YOU DID IT!

*Clear your stage of all blocks by sweeping them to the left. Then try the next challenge.

3. Challenge: Create Your First Simple Game 🎮

Objective: Move a sprite using arrow keys.

  1. Use "when right arrow key pressed""change x by 10".

  2. Use "when left arrow key pressed""change x by -10".

  3. Use "when up arrow key pressed""change y by 10".

  4. Use "when down arrow key pressed""change y by -10".

👉 Now you can move the sprite around the screen!

You are moving ahead!

Wrap Up

With this lesson you learned:

1) how to find blocks,

2) how to move a sprite forward and back,

3) how to set up a game.

Learning Check