Lesson 2 Scratch
Lesson 2 Scratch
Introduction to Scratch
– a Graphical Programming Tool
1
Step 1 - Saving your project
2
Step 2 – Get your Sprite
ready
1. Go to the Cat Sprite and import 4 new sprites from the People
folder called Ballerina-a, Ballerina-b, Ballerina-c, Ballerina-d
3
Step 3 – Choose your
backgrounds
1. Click on the Stage
2. Import the Hall background from the Indoors folder
3. Import the Spotlight-Stage background from the Indoors folder
4. Rename the last background to Spotlight
5. Delete the Blank background
4
Step 4 – Let your Sprite move
1. Click on the Ballerina
2. Click on Scripts
5
Step 5 – Let your Sprite talk
1. Click on the Ballerina
2. Click on Scripts
4. Click on
hold in your mouse and drag it
to the Scripts Area
7
Step 6 – The Sprite must get your
name and remember it
1. Click on Sensing
3. This will allow the user to enter his/her name into a box at the
bottom of the screen.
8
The sprite wants to invite you to
go and watch the show…
9
Step 6 – The Sprite must get your
name and remember it
S p r i te o r
a n t t he
en y ou w
m b e r any
Wh rem e we 1. Click on Variables
r a m t o a m e
prog y o ur n
e / s l i ke r i a bl es.
valu c re ate va ne of us
to anyo
need w h e n w i l l all 2. Click on Make a
s e e
Becau program w me. variable
is a
use th a different n
n
type i
• These values that we get from the user will seldom be the same
as any other user. In this case you can’t put your name in
though we are not sure about the values that we will obtain from
12
Step 6 – The Sprite must get your
name and remember it
1. Click on Variables
3. Click on Sensing
4. Click and drag the Answer instruction to the scripts area inside
the box of the Set Name to 0 instruction. This step then
allocates the answer of the user to that specific variable.
13
Step 6 – Invite the user using
his/her name
1. Click on Operators
4. Drag and drop the Variable Name that you created into the
second part of the operator instruction.
14
Step 6 – Look at how she invites
you personally
15
Step 7 – Move towards the red
doors and then go into the theatre
16
Change the background of the
stage
ollow these steps, the Broadcast will be explained in another lesson.
1. Click on Control
17
Change the background of the
stage
ollow these steps, the Broadcast will be explained in another lesson.
18
Change the background of the
stage
ow will we be able to see the hall every time we start the program?
19
Complete worksheet
20