Animation in Scratch3 - v2
Animation in Scratch3 - v2
Trainer:
2
Table of Contents
Introduction to Scratch 3.0 interface ........................................................................................... 5
Cat wants to dance with Catherine ............................................................................................ 6
Saving your program file.................................................................................................................. 9
Cat moves and cat flies ................................................................................................................ 10
Exercise 1 ............................................................................................................................................ 12
Create a story using Scratch: Cat meets Duck at a park .................................................... 13
Create a story using Scratch: Cat waits for Duck to go fishing at the boardwalk ....... 17
Create a story using Scratch: Add extra character .............................................................. 19
Exercise 2 ............................................................................................................................................ 20
Scratch Challenge: Create your own digital story ................................................................ 21
3
Introduction
Animation in Scratch 3.0 is designed for beginners who wish to know how to create a
digital story or animation using programming blocks in Scratch. This training module is
an accompanying material for participants of the TEGAS Makers Workshop and
Challenge 2020.
Background of trainer
Dr Sarah Samson Juan is a senior lecturer at the Faculty of Computer Science and
Information Technology in Universiti Malaysia Sarawak. She received her PhD from
Grenoble-Alpes University in Computer Science in the field of Automatic Speech
Recognition Systems. She loves to code when she has time and she is passionate in
teaching basic programming to children, particularly, using Scratch. To date, she has
taught Scratch to teachers and children for the past three years.
Software
Google Classroom
4
Introduction to Scratch 3.0 interface
Stop program
Widescreen / Fullscreen
Run program / Green flag
Sprite’s position
(coordinates)
Sprite’s name
Current
backdrop
Add new
backdrop
Sprite’s size
Chosen sprite Add new sprite
5
Cat wants to dance with Catherine
Step 1: Start a new project: File -> New
Step 3: Add another sprite called ‘Anina Dance’ from the Sprite Library.
Then, rename the sprite to ‘Catherine’.
Step 4: Click on the ‘Cat’ and let’s put these codes in the programming
area:
6
Step 5: Fix the direction of the sprite to ‘Left/Right’ to avoid the cat from
turning upside down.
7
Step 8: Let’s run the program and see our first animation. Click
the green flag to start.
Step 9: Click the cat and add these codes. This set of codes will
run in parallel with the other set of codes in the same area. Click
on the green flag to see what happens.
Step 10: Next, we will change the backdrop. Add a new backdrop
called ‘Concert’ from the Backdrop library.
8
Saving your program file
Now you have your first program in Scratch. Let’s save it.
Step 2: Rename your file (see image for example) and select the correct
folder to keep the file. Then, click Save.
Important: Always save your project and you must remember where
your files are kept.
9
Cat moves and cat flies
Code a program to make a cat walks and then flies in the air.
To see what type of costumes that the sprite has, go to the ‘Costumes’
tab. Not all sprites in the library have multiple costumes.
10
Step 3: Program the cat to fly. First, we add two more costumes for the
cat. From the ‘Costumes’ tab (not add new sprite), add these two
costumes from the costume library:
Step 5: Click on the green flag to test your program. Save the file.
Try to add:
• A background music.
• Hide the sprite after it glides to the last position and show the
sprite again after the green flag is clicked.
11
Exercise 1
IV. How to know what are the sprite’s coordinates in the stage?
12
Create a story using Scratch: Cat meets Duck at a park
• Using dialog (say)
Step 1: Start a new project and import two sprites, ‘Cat’ and ‘Duck’.
13
Step 3: Then use broadcast block to send a message for ‘Scene 1’:
Step 4: Click on the cat and program the cat to walk a few steps. Below
are the codes:
Step 5: Click on the duck and program the sprite to glide into the stage.
14
Step 6: Then, click the cat again to add the first dialog. After that, we
need to send a cue (broadcast) for the Duck to say something.
Step 7: Click on the duck again to add codes for its dialog.
Step 9: Lastly, add the final dialog for the duck. Save the program file.
15
Try to add:
• In the same direction, make the cat and duck move to the
end of the stage. Then, both disappear from the stage.
16
Create a story using Scratch: Cat waits for Duck to go
fishing at the boardwalk
Duck: I’m very sorry Cat. I met a friend of mine while I was on the way
here. We talked for a while.
Step 1: Upload the previous file to continue from the previous story.
17
Step 4: Click on the cat to program the dialog for the second scene.
Step 5: Then, we will program the duck to enter the scene quickly and
then say its dialog.
Step 6: There is one more dialog for Cat, so we will add more codes to
the cat:
18
Create a story using Scratch: Add extra character
Some stories have extra actors such as people passing by, a bird is flying
in the sky and many more. Let’s add the missing fish in scene 2.
Step 2: Program the fish to turn its body as it lie on the boardwalk.
Step 3: Then finally, click on the green flag to watch your story in Scratch.
Save your work.
Try to change:
Try to add:
• A title (as a word sprite) to your story in the first scene. Make
the title disappear after a few seconds.
19
Exercise 2
Create a program that tells three random facts about you. For example:
You may use multiple sprites to tell your facts. The program must have:
• Background music
• One backdrop
20
Scratch Challenge: Create your own digital story
You are given the chance to use Scratch to tell a story about how we
can fight Covid-19. You can tell about, but not limited to:
Rubric Criteria:
• Story development
You may use images from the Internet or draw your own sprites or
backdrop.
THREE best animation winners will have the chance to compete at the
Workshop Challenge (Science).
21
You can use the following template to create your storyboard before you start
to program in Scratch.
Scene 1:
Backdrop to choose:
Sprites in this scene:
Dialog:
Scene 2:
Backdrop to choose:
Sprites in this scene:
Dialog:
Scene 3:
Backdrop to choose:
Sprites in this scene:
Dialog:
22