Coding Concepts 2:
events, loops, and animation
Lesson 5
Scratch Basics
EVENT
An action that causes something else to happen
EVENT
An action that causes something else to happen
What is an example of an event block
in Scratch?
Event blocks are yellow.
Here are some examples:
An action that causes something else to happen
EVENT
WB Page
11
LOOP
A sequence of instructions that is _____________
repeated
OR
REPEAT
6 times
The LOOP Block
The number of times to repeat an action
The action(s) that will be repeated
WB Page
12
Which script is easier to read? Why?
WB Page
13
1
2
{
{
WB Page
13
What will happen in the two scripts?
{
{
{
1
2
3
WB Page
13
Loops
What are things that you do that are in loops?
What kinds of things do you think you can program sprites to do in loops?
/
Animation
What are some examples of animation?
cartoons
flipbooks
animated movies
WB Page
14
/
Animation
In an animation, what causes the characters to “move”?
WB Page
14
/
Animation
In Scratch, we can animate our sprites by putting a sequence of blocks inside a repeat loop.
Can you describe what will happen when this code runs?
Circle the blocks cause the sprite to be animated.
WB Page
14
/
Animation
In Scratch, we can animate our sprites by putting a sequence of blocks inside a repeat loop.
Can you describe what will happen when this code runs?
Circle the blocks cause the sprite to be animated.
WB Page
14
Animation
/
Unplugged - Animation
LOOP AND EVENTS IN SPACE in Scratch!
https://scratch.mit.edu/projects/1365620232/editor
Remix and Share to Studio
WB Page
15
LOOP AND EVENTS IN SPACE QUEST
WB Page
15
LOOP AND EVENTS IN SPACE in Scratch!
4. Add to your class studio named “loop space”
Remix and Share to Studio
WB Page
15
LOOP AND EVENTS IN SPACE QUEST
WB Page
16
System Debugging #2
https://scratch.mit.edu/projects/1365623575/editor
WB Page
19
System Debugging #2 Solution
https://scratch.mit.edu/projects/1365623848/editor
Unplugged: Flipbooks - Animation
WB Page
17