Scratch in the Environment Basic 6 Basic Technology Lesson Note
Download Lesson NoteTopic: Scratch in the Environment
LEARNING OBJECTIVES By the end of the lesson, pupils should be able to:
- Apply scratch programming to execute activities to preserve the climate
INTRODUCTION
Scratch is a visual programming language developed by MIT (Massachusetts Institute of Technology) that allows users to create interactive stories, games, and animations. It uses colorful blocks that snap together like puzzle pieces, making programming easy and fun for beginners.
WHAT IS SCRATCH?
Definition: Scratch is a free, block-based programming language and online community where you can create your own interactive stories, games, and animations.
Key Features:
- Visual programming (drag and drop blocks)
- No typing of complex code
- Colorful and engaging
- Free to use
- Online and offline versions available
- Large community for sharing projects
How to Access Scratch:
- Website: https://scratch.mit.edu
- Create free account
- Start programming immediately
- Can also download offline editor
CREATING OCEAN CLEAN-UP PROJECT IN SCRATCH
Project Goal: Create an interactive game/animation where players clean up ocean pollution by collecting trash, educating about marine conservation, and showing the impact of human actions on the environment.
SCRATCH BASICS
Main Components:
- Sprites:
- Characters or objects in your project
- Can move, change appearance, interact
- Examples: fish, boat, trash, diver
- Stage:
- Background where sprites appear
- Can change backgrounds
- Sets the scene
- Blocks:
- Commands that make sprites do things
- Different categories (Motion, Looks, Sound, Events, Control, etc.)
- Snap together like LEGO
- Scripts:
- Sets of blocks connected together
- Tell sprites what to do
- Run when triggered by events
Block Categories:
- Motion Blocks (Blue):
- Move sprite
- Turn sprite
- Go to position
- Change x and y coordinates
- Looks Blocks (Purple):
- Change costume
- Show/hide sprite
- Say something
- Change size
- Sound Blocks (Pink):
- Play sounds
- Change volume
- Stop sounds
- Events Blocks (Yellow):
- When green flag clicked
- When key pressed
- When sprite clicked
- Start scripts
- Control Blocks (Orange):
- Repeat actions
- If-then conditions
- Wait
- Stop scripts
- Sensing Blocks (Light Blue):
- Touch detection
- Ask questions
- Get user input
- Distance between sprites
- Operators Blocks (Green):
- Math operations
- Compare values
- Logic operations
- Variables Blocks (Orange):
- Create variables
- Store values
- Keep score
OCEAN CLEAN-UP PROJECT STEPS
STEP 1: PLAN YOUR PROJECT
Project Elements:
- Ocean background
- Boat or diver (player character)
- Various trash items (plastic bottles, bags, cans)
- Marine animals (fish, turtles, dolphins)
- Score counter
- Timer
- Educational messages
Game Objective:
- Collect as much trash as possible
- Avoid harming marine animals
- Clean ocean within time limit
- Earn points for trash collected
- Lose points for hitting animals
STEP 2: CREATE THE STAGE
- Go to Scratch website
- Click “Create”
- Choose backdrop:
- Click backdrop icon
- Choose “underwater” or “beach”
- Or paint your own ocean scene
Backdrop Ideas:
- Blue water background
- Coral reefs
- Ocean floor with seaweed
- Surface view with waves
STEP 3: ADD SPRITES
Main Character (Player):
- Delete default cat sprite
- Add new sprite – choose:
- Boat
- Scuba diver
- Submarine
- Fishing net
- Position at bottom or side of stage
Trash Sprites (Collectibles): Add multiple trash items:
- Plastic bottle
- Plastic bag
- Soda can
- Food wrapper
- Fishing net
- Tire
- Glass bottle
You can:
- Choose from sprite library
- Draw your own
- Upload images
Marine Life Sprites: Add animals to avoid:
- Fish
- Turtle
- Dolphin
- Whale
- Starfish
- Coral
STEP 4: PROGRAM THE PLAYER
Make player move with arrow keys:
- When [green flag] clicked
- Forever
- Â Â If <key [left arrow] pressed?> then
- Â Â Â Â Change x by (-10)
- Â Â End
- Â Â If <key [right arrow] pressed?> then
- Â Â Â Â Change x by (10)
- Â Â End
- Â Â If <key [up arrow] pressed?> then
- Â Â Â Â Change y by (10)
- Â Â End
- Â Â If <key [down arrow] pressed?> then
- Â Â Â Â Change y by (-10)
- Â Â End
- End
Alternative – Mouse Control:
- When [green flag] clicked
- Forever
- Â Â Point towards [mouse-pointer]
- Â Â Move (5) steps
- End
STEP 5: PROGRAM TRASH SPRITES
Make trash appear randomly and fall:
- When [green flag] clicked
- Hide
- Forever
- Â Â Go to x: (pick random (-240) to (240)) y: (180)
- Â Â Show
- Â Â Repeat until <touching [edge]?>
- Â Â Â Â Change y by (-3)
- Â Â Â Â If <touching [Player]?> then
- Â Â Â Â Â Â Change [Score] by (10)
- Â Â Â Â Â Â Play sound [collect]
- Â Â Â Â Â Â Hide
- Â Â Â Â Â Â Stop [this script]
- Â Â Â Â End
- Â Â End
- Â Â Hide
- Â Â Wait (2) seconds
- End
Different trash can have different speeds and points:
- Plastic bottles: 10 points, fall slowly
- Plastic bags: 15 points, drift sideways
- Large items: 20 points, fall faster
STEP 6: PROGRAM MARINE ANIMALS
Make animals swim across and penalize if hit:
- When [green flag] clicked
- Forever
- Â Â Go to x: (-240) y: (pick random (-150) to (150))
- Â Â Show
- Â Â Repeat until <x position > (240)>
- Â Â Â Â Move (3) steps
- Â Â Â Â If <touching [Player]?> then
- Â Â Â Â Â Â Change [Score] by (-20)
- Â Â Â Â Â Â Say [Ouch! Be careful!] for (2) seconds
- Â Â Â Â Â Â Hide
- Â Â Â Â Â Â Stop [this script]
- Â Â Â Â End
- Â Â End
- End
STEP 7: CREATE VARIABLES
Click “Variables” category:
- Make variable named “Score”
- Make variable named “Time”
- Make variable named “Trash Collected”
Set starting values:
- When [green flag] clicked
- Set [Score] to (0)
- Set [Time] to (60)
- Set [Trash Collected] to (0)
STEP 8: ADD TIMER
Create countdown timer:
- When [green flag] clicked
- Set [Time] to (60)
- Repeat until <[Time] = (0)>
- Â Â Wait (1) seconds
- Â Â Change [Time] by (-1)
- End
- Say [Time’s up!] for (2) seconds
- Stop [all]
STEP 9: ADD SCORING SYSTEM
When trash collected:
- When [green flag] clicked
- Forever
- Â Â If <touching [Player]?> then
- Â Â Â Â Change [Score] by (10)
- Â Â Â Â Change [Trash Collected] by (1)
- Â Â Â Â Play sound [pop]
- Â Â Â Â Hide
- Â Â Â Â Wait (2) seconds
- Â Â End
- End
STEP 10: ADD EDUCATIONAL MESSAGES
Create sprite or use stage to display facts:
Starting Message:
- When [green flag] clicked
- Say [Help clean the ocean! Collect trash, avoid sea creatures!] for (3) seconds
During Game: Random facts appear:
- When [green flag] clicked
- Forever
- Â Â Wait (15) seconds
- Â Â Say [Did you know? 8 million tons of plastic enter oceans yearly!] for (4) seconds
- Â Â Wait (15) seconds
- Â Â Say [Plastic takes 400+ years to decompose in ocean!] for (4) seconds
- Â Â Wait (15) seconds
- Â Â Say [Sea turtles often mistake plastic bags for jellyfish!] for (4) seconds
- End
Ending Message:
- When [Time] = (0)
- If <[Trash Collected] > (20)> then
- Â Â Say [Great job! You collected [Trash Collected] pieces! Ocean is cleaner!] for (5) seconds
- Else
- Â Â Say [Try again! Ocean needs more help!] for (3) seconds
- End
STEP 11: ADD SOUNDS
Add sound effects:
- Collect sound when trash picked up
- Splash sound for water
- Animal sounds for marine life
- Celebration sound when winning
- Background ocean sounds
To add sounds:
- Click sprite
- Go to “Sounds” tab
- Choose from library or record
STEP 12: ADD LEVELS
Make game progressively harder:
Level 1: Slow trash, few animals Level 2: Faster trash, more animals Level 3: Very fast trash, many animals
- When [green flag] clicked
- Set [Level] to (1)
- Forever
- Â Â If <[Trash Collected] > (15)> then
- Â Â Â Â Change [Level] by (1)
- Â Â Â Â Say [Level Up!] for (2) seconds
- Â Â End
- End
Adjust speed based on level:
- Change y by ((Level) * (-2))
ENHANCEMENTS AND FEATURES
- Power-ups:
- Net to collect multiple trash at once
- Speed boost
- Time extension
- Magnet to attract trash
- Obstacles:
- Rocks to avoid
- Strong currents that push player
- Oil spills that slow movement
- Visual Effects:
- Bubbles animation
- Waves moving
- Fish swimming naturally
- Trash bobbing up and down
- Statistics Screen: Show at end:
- Total trash collected
- Score achieved
- Time taken
- Environmental impact message
- Educational Quiz: Add questions between levels:
- Ask [What takes 400+ years to decompose? A) Plastic B) Paper] and wait
- If <answer = [A]> then
- Â Â Say [Correct! Bonus 50 points!]
- Â Â Change [Score] by (50)
- Else
- Â Â Say [Wrong! The answer is Plastic]
- End
EXAMPLE PROJECT IDEAS
Project 1: Ocean Cleanup Game
- Control boat with arrow keys
- Net collects floating trash
- Score points for each item
- Avoid hitting marine animals
- Timer: 2 minutes
- Educational facts displayed
Project 2: Beach Cleanup Animation
- Show dirty beach
- Character picks up trash
- Beach becomes cleaner
- Animals return to clean beach
- Message about keeping beaches clean
Project 3: Pollution Awareness Story
- Animated story showing:
- Clean ocean
- Humans throwing trash
- Ocean becoming polluted
- Marine animals suffering
- People cleaning ocean
- Ocean restored
- Educational narrative
Project 4: Recycling Sorter
- Different trash falls from sky
- Player catches and sorts into bins
- Plastic bin
- Glass bin
- Paper bin
- Metal bin
- Points for correct sorting
Project 5: Marine Life Rescue
- Animals trapped in trash
- Player frees them
- Each rescue earns points
- Shows impact of pollution
- Encourages conservation
ENVIRONMENTAL MESSAGES TO INCLUDE
Facts to Display:
- “8 million tons of plastic enter our oceans every year”
- “By 2050, there could be more plastic than fish in the ocean”
- “Plastic takes 400-1000 years to decompose”
- “Sea turtles mistake plastic bags for jellyfish and eat them”
- “1 million seabirds die from plastic pollution yearly”
- “90% of seabirds have plastic in their stomachs”
- “Microplastics are found in seafood we eat”
- “Every piece of plastic ever made still exists today”
Actions We Can Take:
- “Use reusable water bottles instead of plastic”
- “Say NO to plastic straws”
- “Bring reusable bags when shopping”
- “Recycle properly”
- “Participate in beach cleanups”
- “Reduce, Reuse, Recycle”
- “Don’t litter – dispose trash properly”
- “Choose products with less packaging”
TESTING AND SHARING PROJECT
Testing:
- Click green flag to start
- Test all controls work
- Check scoring system
- Verify timer counts down
- Test collision detection
- Play complete game
- Fix any bugs
Sharing:
- Click “Share” button on Scratch
- Add project title: “Ocean Cleanup Game”
- Add instructions for players
- Add description about environmental message
- Add to “Environment” or “Games” studio
- Share link with friends and family
OTHER SCRATCH CLIMATE PROJECTS
- Forest Protection Game:
- Stop deforestation
- Plant trees
- Protect animal habitats
- Score for trees planted
- Air Quality Monitor:
- Show air pollution levels
- Demonstrate sources of pollution
- Show effects on health
- Promote clean air solutions
- Energy Conservation:
- Turn off lights in house
- Use renewable energy
- Compare energy usage
- Reduce electricity consumption
- Wildlife Conservation:
- Protect endangered animals
- Create safe habitats
- Prevent poaching
- Educational facts about species
- Water Conservation:
- Fix leaking taps
- Collect rainwater
- Show water cycle
- Promote water-saving habits
- Climate Change Simulator:
- Show rising temperatures
- Melting ice caps
- Rising sea levels
- Effects on different regions
BENEFITS OF USING SCRATCH FOR ENVIRONMENTAL EDUCATION
- Engaging Learning:
- Interactive and fun
- Visual representation
- Hands-on activity
- Keeps attention
- Develops Skills:
- Programming/coding skills
- Problem-solving
- Logical thinking
- Creativity
- Planning and organization
- Raises Awareness:
- Teaches environmental issues
- Shows impact of actions
- Encourages responsibility
- Promotes positive change
- Accessible:
- Free to use
- Works on any computer
- No installation needed (online version)
- Suitable for all ages
- Shareable:
- Share with friends
- Reach wider audience
- Inspire others
- Create community impact
EVALUATION
- What is Scratch?
- Why is ocean cleanup important?
- Name three types of trash that pollute oceans
- What are sprites in Scratch?
- How can Scratch help raise environmental awareness?
MULTIPLE CHOICE QUESTIONS
- Scratch is a ________ programming language
- a) Difficult
- b) Visual block-based
- c) Only for adults
- d) Expensive
- Ocean cleanup is important because ________
- a) Water looks dirty
- b) Plastic harms marine life
- c) It’s fun
- d) Fish like it
- In Scratch, characters are called ________
- a) Actors
- b) Sprites
- c) Images
- d) Cartoons
- How many tons of plastic enter oceans yearly?
- a) 1 million
- b) 8 million
- c) 100,000
- d) 500
- The background in Scratch is called ________
- a) Screen
- b) Stage
- c) Canvas
- d) Window
- Which is NOT a way to help oceans?
- a) Use reusable bottles
- b) Recycle plastic
- c) Throw trash in ocean
- d) Participate in beach cleanup
- Plastic takes about ________ years to decompose
- a) 10
- b) 50
- c) 100
- d) 400+
- In an ocean cleanup game, you should ________
- a) Collect trash
- b) Harm marine animals
- c) Add more pollution
- d) Ignore the ocean
- Scratch was developed by ________
- a) Google
- b) Microsoft
- c) MIT
- d) Apple
- Variables in Scratch are used to ________
- a) Delete sprites
- b) Store values like score
- c) Change colors only
- d) Stop the program
ANSWERS: 1.b 2.b 3.b 4.b 5.b 6.c 7.d 8.a 9.c 10.b
HOMEWORK
- Create a simple Scratch account and explore the interface (with parent’s permission)
- List five environmental problems and explain how Scratch projects can raise awareness about them
- Design on paper a storyboard for an ocean cleanup game showing:
- Main character
- Types of trash
- Marine animals
- How scoring works
- Write ten facts about ocean pollution that could be included in a Scratch project
- Explain why it’s important for young people to learn about environmental conservation