Lesson Objective
Create and program variables using Scratch
Starter
Starter
What is a variable?
How could they be used in a computer game?
Main
Task 1: Creating a Variable
a) Open your Scratch game and create a 'score' variable
Task 2: Enemy Score
a) Add script to your main character that sets the score to '0' when the game starts
b) Add script to your 'enemy' that will decrease the score by 10 points (-10) when you hit it
Task 3: Collecting Points
a) Load or create a sprite to act as way to collect points (coin, heart, jewel etc.)
b) Add script to your 'good item' that will increase the score by 10 points
Extension
Try adding a life or health variable into the game
Plenary
a) Open your Scratch Evidence Document
b) Complete the Lesson 3 section
c) Save your work
Homework
Hand in homework books for marking