Discovering
scratch
An Introduction to scratch programming
Activity 1:
Talking Sprite
Objective: Make a sprite speak and move when the
green flag is clicked.
Blocks Used:
1. Events → "When green flag clicked"
2. Looks → "Say Hello! for 2 seconds"
3. Motion → "Move 10 steps"
Code Sequence:
Start with the green flag block.
Add the "Say Hello!" block under it, which makes the
sprite say “Hello!” for 2 seconds.
Attach the "Move 10 steps" block to make the sprite
move a little after speaking.
Activity 2:
Conversation
Between Sprites
Objective: Create a dialogue between two sprites that run
when the green flag is clicked.
Blocks Used (Sprite 1 - Cat):
1. Events → "When green flag clicked"
2. Looks → "Say Hello, who are you? for 2 seconds"
3.
Blocks Used (Sprite 2 - Fish):
1. Events → "When green flag clicked"
2. Looks → "Say I am a fish! Nice to meet you! for 2
seconds"
Code Sequence:
For the cat sprite, use the green flag event block and
attach the "Say Hello, who are you?" block.
For the fish sprite, use the same event block but attach
"Say I am a fish! Nice to meet you!".
Activity 3:
Dancing Sprite
with a Loop
rotation
Objective: Use loops to make a sprite dance by spinning
repeatedly.
Blocks Used:
1. Events → "When green flag clicked"
2. Control → "Repeat 10 times"
3. Motion → "Turn 15 degrees"
Code Sequence:
Start with the green flag event.
Attach the "Repeat 10 times" block from the Control
section.
Place the "Turn 15 degrees" block inside the repeat block
to make the sprite spin.
Activity 4: Create
a Mini Story
Objective: Build a short story with sprites interacting and
moving across the screen.
Blocks Used (Sprite 1 - Cat):
1. Events → "When green flag clicked"
2. Looks → "Say Hi! Where are you going? for 3 seconds"
3. Motion → "Move 50 steps"
Blocks Used (Sprite 2 - Dog):
1. Events → "When green flag clicked"
2. Looks → "Say I am off to the park! See you later! for 3
seconds"
3. Motion → "Move 50 steps"
Code Sequence:
For the cat sprite, use the green flag event and add the
"Say Hi! Where are you going?" block. Then, attach the
"Move 50 steps" block.
For the dog sprite, use the green flag event and attach
"Say I am off to the park! See you later!" followed by
"Move 50 steps".
Conclusion
Wrap-Up & Presentations (5
minutes)
Create your own activity.......
Thank you
very much