1 of 24

Coding Concepts 2:

events, loops, and animation

Lesson 5

Scratch Basics

2 of 24

3 of 24

EVENT

An action that causes something else to happen

4 of 24

EVENT

An action that causes something else to happen

5 of 24

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

6 of 24

LOOP

A sequence of instructions that is _____________

repeated

OR

REPEAT

6 times

7 of 24

The LOOP Block

The number of times to repeat an action

The action(s) that will be repeated

WB Page

12

8 of 24

Which script is easier to read? Why?

WB Page

13

9 of 24

1

2

{

{

WB Page

13

10 of 24

What will happen in the two scripts?

{

{

{

1

2

3

WB Page

13

11 of 24

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?

12 of 24

/

Animation

What are some examples of animation?

cartoons

flipbooks

animated movies

WB Page

14

13 of 24

/

Animation

In an animation, what causes the characters to “move”?

WB Page

14

14 of 24

/

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

15 of 24

/

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

16 of 24

Animation

17 of 24

/

Unplugged - Animation

18 of 24

LOOP AND EVENTS IN SPACE in Scratch!

https://scratch.mit.edu/projects/1365620232/editor

  1. Go to https://scratch.mit.edu/projects/1365620232/editor in your browser.
  2. Sign into your account.

  • Reload and click remix

Remix and Share to Studio

WB Page

15

19 of 24

LOOP AND EVENTS IN SPACE QUEST

WB Page

15

20 of 24

LOOP AND EVENTS IN SPACE in Scratch!

4. Add to your class studio named “loop space”

Remix and Share to Studio

WB Page

15

21 of 24

LOOP AND EVENTS IN SPACE QUEST

WB Page

16

22 of 24

System Debugging #2

https://scratch.mit.edu/projects/1365623575/editor

WB Page

19

23 of 24

System Debugging #2 Solution

https://scratch.mit.edu/projects/1365623848/editor

24 of 24

Unplugged: Flipbooks - Animation

WB Page

17