0% found this document useful (0 votes)
53 views9 pages

Scratch Programming Guide for Grades 7-9

The document provides comprehensive notes and activities for teaching Scratch programming to Grade 7-9 students, covering various block categories such as Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Pen extension. It includes detailed explanations, practical classroom activities, and example questions to reinforce learning. Additionally, it outlines an extension project that integrates all concepts into a mini interactive game.

Uploaded by

mnkurhiso
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views9 pages

Scratch Programming Guide for Grades 7-9

The document provides comprehensive notes and activities for teaching Scratch programming to Grade 7-9 students, covering various block categories such as Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Pen extension. It includes detailed explanations, practical classroom activities, and example questions to reinforce learning. Additionally, it outlines an extension project that integrates all concepts into a mini interactive game.

Uploaded by

mnkurhiso
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

S

SCRATCH
Notes and Activities (Exam prep Grade 7-9)
Contents
Scratch Programming Notes ................................................................................................................................2
Motion Blocks ........................................................................................................................................................2
Looks Blocks ..........................................................................................................................................................2
Sound Blocks..........................................................................................................................................................3
Events Blocks.........................................................................................................................................................3
Control Blocks .......................................................................................................................................................3
Sensing Blocks .......................................................................................................................................................3
Operators Blocks ..................................................................................................................................................4
Variables Blocks ...................................................................................................................................................4
Pen Extension ........................................................................................................................................................4
Detailed Explanation: Control Blocks...............................................................................................................4
Types of Control Blocks.....................................................................................................................................4
Examples .................................................................................................................................................................5
Summary Table .....................................................................................................................................................5
Scratch Programming Practical Classroom Activities ...............................................................................6
Motion Blocks ........................................................................................................................................................6
Looks Blocks ..........................................................................................................................................................6
Sound Blocks..........................................................................................................................................................6
Events Blocks.........................................................................................................................................................7
Control Blocks .......................................................................................................................................................7
Sensing Blocks .......................................................................................................................................................7
Operators Blocks ..................................................................................................................................................7
Variables Blocks ...................................................................................................................................................7
Pen Extension ........................................................................................................................................................8
Extension Project: Using All Concepts Together.....................................................................................8

1
Scratch Programming Notes
Scratch is a block-based visual programming language developed by MIT. It allows users to
create interactive stories, animations, games, and simulations by snapping together code
blocks like puzzle pieces. Each block belongs to a specific category represented by a color.

Motion Blocks
Control the movement and position of a sprite.

• Examples:

• move 10 steps
• turn 15 degrees
• go to x: 0 y: 0
• glide 1 secs to x: 100 y: 100
• point towards [mouse-pointer]

Looks Blocks
Change how a sprite looks — its costume, size, or what it says.

• Examples:

• say "Hello!" for 2 seconds


• switch costume to [costume2]
• change color effect by 25

2
• show / hide
• change size by 10

Sound Blocks
Play sounds and control audio effects.

• Examples:

• play sound [meow] until done


• start sound [pop]
• stop all sounds
• change pitch effect by 10
• clear sound effects

Events Blocks
Detect and respond to events (like clicks, key presses, or broadcasts).

• Examples:

• when green flag clicked


• when [space] key pressed
• when this sprite clicked
• broadcast [Game Over]
• when I receive [Game Over]

Control Blocks
Control how the program runs — repetition, waiting, and decision-making.

• Examples:

• wait 1 seconds
• repeat 10
• forever
• if <condition> then
• if <condition> then else
• stop [all]

Sensing Blocks
Detect interactions with the mouse, keyboard, or other sprites.

• Examples:

• touching [sprite1]?
• mouse x / mouse y
• key [space] pressed?

3
• ask 'What is your name?' and wait
• answer

Operators Blocks
Perform math, comparisons, and combine text or conditions.

• Examples:

• +, -, *, /
• <, >, =
• and, or, not
• join [Hello] [World]
• pick random 1 to 10

Variables Blocks
Store and change values (like scores, time, or player health).

• Examples:

• set [score] to 0
• change [score] by 1
• show variable [score]
• hide variable [timer]

Pen Extension
Used to draw shapes and patterns on the stage using the sprite as a pen.

• Examples:

• pen down / pen up


• set pen color to [#ff0000]
• change pen size by 1
• clear

Detailed Explanation: Control Blocks


Control blocks in Scratch are used to manage the flow of the program. They allow the sprite
to repeat actions, wait for a certain time, make decisions, and control when scripts start or
stop. These blocks are essential for creating loops, conditions, and timing in animations and
games.

Types of Control Blocks


1. Wait Block – pauses the script for a set number of seconds.
2. Repeat Block – repeats a set of actions a specific number of times.
3. Forever Block– repeats actions endlessly until the program stops.

4
4. If/Then Block – checks a condition; if it's true, performs the action inside.
5. If/Then/Else Block – performs one action if the condition is true, another if false.
6. Stop Block – stops one or all scripts in a project.

Examples
Example 1: Making a sprite move continuously:
```
when green flag clicked
forever
move 10 steps
if on edge, bounce
end
```

Example 2: Waiting and making a decision:


```
when green flag clicked
wait 2 seconds
if <touching [mouse-pointer]?> then
say 'Gotcha!'
else
say 'Try again!'
end
```

In summary, control blocks make a Scratch project interactive and dynamic by managing
repetition, timing, and decision-making. Without them, Scratch animations and games
would only perform a single sequence of actions.

Summary Table
Category Purpose Example Block Color

Motion Moves the sprite move 10 steps Blue

Looks Changes appearance say "Hi!" for 2 Purple


seconds

Sound Plays sounds play sound [meow] Pink


until done

Events Starts actions when green flag Yellow


clicked

5
Control Repetition/decision forever / if then Orange

Sensing Detects input touching [mouse- Light Blue


pointer]?

Operators Math/logic pick random 1 to 10 Green

Variables Stores data set [score] to 0 Dark Orange

Pen Draws on the stage pen down Teal

Scratch Programming Practical Classroom Activities


This document provides practical classroom questions and activities to help learners apply
key Scratch programming concepts, including Motion, Looks, Sound, Events, Control,
Sensing, Operators, Variables, and the Pen extension.

Motion Blocks
Activity: Create a simple animation where a sprite (like the Scratch Cat) walks across the
screen.

• Questions:

• Which blocks did you use to make the sprite move?


• How can you make the sprite move in a zig-zag pattern?
• What happens if you use the glide block instead of move?

Looks Blocks
Activity: Make a sprite change its costume to simulate movement or emotion.

• Questions:

• How can you make a sprite say something for 2 seconds?


• Can you make your sprite switch costumes when it moves?
• How can you hide and show your sprite at different times?

Sound Blocks
Activity: Add background music or sound effects to your Scratch project.

• Questions:

• How do you make a sound play when the green flag is clicked?
• What is the difference between play sound until done and start sound?
• Can you make a sound play when two sprites touch each other?

6
Events Blocks
Activity: Use events to start different actions (for example, press the space bar to make the
sprite jump).

• Questions:

• Which block do you use to start your program?


• How can you make one sprite react when another sprite broadcasts a message?
• What happens if you use 'when this sprite clicked'?

Control Blocks
Activity: Create a loop that makes a sprite move and bounce around forever.

• Questions:

• What is the purpose of the forever loop?


• How does the if then block help control what your sprite does?
• Can you make your sprite wait for 2 seconds before repeating an action?

Sensing Blocks
Activity: Create a game where the sprite changes color when it touches another sprite or the
mouse pointer.

• Questions:

• Which block detects if the sprite is touching another sprite?


• How can you make your sprite follow the mouse pointer?
• How do you get input from the user using the ask block?

Operators Blocks
Activity: Make a game that uses random numbers to decide what happens next.

• Questions:

• How can you use the pick random 1 to 10 block in your project?
• Can you join two pieces of text together using the join block?
• What operator would you use to check if a number is greater than another?

Variables Blocks
Activity: Create a score system that increases every time the sprite touches a certain object.

• Questions:

• How do you create a variable in Scratch?


• How can you increase a variable’s value?
• Can you hide a variable display from the stage?

7
Pen Extension
Activity: Use the pen extension to draw shapes like squares, triangles, or patterns.

• Questions:

• What happens when you use pen down?


• How can you change the pen color?
• Can you create a loop that draws a star shape using the repeat block?

Extension Project: Using All Concepts Together


Create a mini interactive game where:
- The player moves a sprite with arrow keys (Motion + Events).
- The sprite says messages when it scores (Looks).
- Sounds play when an action happens (Sound).
- The game uses variables to track score and time (Variables).
- Control and Operator blocks manage game logic.
- Sensing blocks detect when sprites touch.
- The Pen draws the player’s path or score line.

• Discussion Questions:

• Which blocks did you use to make your sprite move and interact?
• How do the control and sensing blocks help manage your game?
• What challenges did you face combining all these blocks?

Common questions

Powered by AI

Control and sensing blocks together enable interactive game mechanics by facilitating responsiveness to player inputs and altering the game state based on conditions. Sensing blocks can detect specific inputs, like when a sprite is clicked or when it touches another sprite. These inputs trigger control blocks, like 'if/then,' to execute corresponding actions such as moving or changing the game score. Control blocks like 'repeat' and 'forever' can maintain ongoing checks for these inputs, ensuring ongoing interactivity as players engage with the game .

The 'play sound until done' block plays the selected sound file completely before proceeding to the next block, effectively pausing the script. In contrast, the 'start sound' block initiates the sound and immediately continues to the next block, allowing other actions to run concurrently while the sound plays .

The 'forever' loop is crucial for maintaining continuous actions without manual restart, such as moving objects or continuously checking conditions like scores or key presses. It helps manage persistence of action in gameplay by ensuring actions repeat indefinitely until a specified stopping condition occurs. For instance, sprites can keep moving, and game elements can update in real time without needing repeated user intervention, providing a seamless gaming experience .

The Pen extension allows sprites to draw on the stage, enabling creative expression such as drawing shapes or patterns. By using the 'pen down' block, a sprite can leave a trail as it moves, making it possible to create interactive drawings. Changing pen color and size can further customize visual output, making projects more visually appealing. Complex patterns like stars or spirals can be created by using 'repeat' loops to execute drawing commands systematically, adding a dynamic artistic dimension to projects .

To implement a scoring system, variables can be used to store the score value, which can be updated as certain conditions are met. Operators allow you to perform calculations and comparisons—such as adding to the score variable using 'change [score] by 1' whenever a sprite touches a target sprite. The 'if/then' block, in combination with operators, can check if milestones are achieved (using comparisons like 'greater than') and trigger events such as level advancement or bonus points .

Control blocks in Scratch manage the flow of the program, allowing for repetition, decision-making, and timing, which are crucial for interactivity. For example, using the 'forever' block can make a sprite move continuously, creating dynamic action. By incorporating the 'if/then' block, a game can react to player inputs like key presses or sprite collisions by executing certain actions, such as displaying messages or changing game elements . These blocks allow for creating event-driven behavior, essential for engaging and responsive gameplay .

Events blocks start scripts based on user actions or broadcast messages, thereby enhancing the responsiveness of gameplay. For example, using 'when [space] key pressed,' a sprite could jump or perform actions immediately in response to player inputs. Broadcast messages, such as 'game over,' can trigger multiple scripts across different sprites to coordinate complex interactions or transitions, like ending a game or starting a new level. These blocks ensure that the game responds dynamically to player actions, improving engagement .

Integrating multiple block types, such as Motion, Looks, Control, and Variables, can lead to logical complications, such as managing multiple simultaneous events or ensuring that all conditions are met correctly without conflicts. These can be overcome by systematically designing the program flow, using control blocks to sequence actions properly and testing individual segments frequently to catch errors. Debugging can be facilitated by using the 'ask' and 'say' blocks to display variable states and logical outputs during execution, ensuring all interactions work as intended .

Sprites can interact with user inputs, such as mouse clicks and key presses, using sensing blocks like 'touching [mouse-pointer]?' or 'key [space] pressed?'. These inputs can control sprites by triggering control blocks such as 'if/then,' allowing sprites to react accordingly, like moving, changing costumes, or playing sounds. Control blocks can loop these interactions as needed, ensuring sprites are continuously responsive to inputs. This setup enhances interactivity and player engagement by making games reactive to user actions .

Motion blocks control the position and movement of sprites, enabling complex animations. For instance, using a combination of 'move' and 'turn' blocks, a sprite can create curved paths or zig-zag patterns. The 'glide' block allows for smooth transitions between coordinates, and 'point towards' can make a sprite follow the mouse or another sprite, adding dynamism to animations. These blocks can be combined to simulate realistic or creative motions .

You might also like