Published using Google Docs
Act I Loops Unit Plan Group B
Updated automatically every 5 minutes

Loops

Overview

A sprite can be animated by repeating sets of blocks that alternate between switching costumes or moving to the next costume along with repeated step movement. Adjusting the wait times of these repeated actions will increase or decrease the speed of the animation. Naming each of the costumes and changing the size of the sprites can assist in the creation of the animation.

Module Objectives

Students will be able to:

  • animate a sprite at one location using a repeat loop and multiple costumes.
  • animate a sprite with movement using a repeat loop.
  • distinguish between the functionality of switch costume and next costume blocks.

Big Idea:

In many tasks, the same action or sequence of actions is repeated several times. Loops are used to make it easier to express such programs. Figuring out how many times the loop should run is critical to proper use.

Module Overview

Lesson 1: Exploring Loops (45 minutes)

The concept of loops is introduced. Students modify a Scratch project to make a band play songs and move using loops.

Lesson 2: Creating with Loops  (60 minutes)

Students use animation in an open-ended, create a project to create an interactive story.  This is the culminating project for the entire curriculum.

Written Assessment: 

Animation: Written Assessment                           PDF   Answer Key

Prior Knowledge

Looks

Events 

Motion

New Blocks

Sound

Control


Lesson 1: Exploring Loops (45 minutes)

Lesson Overview

In this lesson, students animate and play music with instrument sprites.

Vocabulary: loop

Lesson At-a-Glance

Engage (10  minutes)

Explore (25  minutes)

Reflect (10  minutes)

Lesson Preparation

Student Materials

Engage

Explore

   

Scratch Project(s) & Teacher Materials

Engage & Explore

       

Engage 

Introductory Discussion (10 minutes)

Use Question / Student Answer / Teacher Clarification to introduce loops through this sequence of questions. Place yourself in a direct path to the door. Project or hand out the Loops handout.

Can someone tell me the instructions to get to the door?  [Point towards the door, walk X steps] 

What would you do if I don’t understand the instruction “walk X steps” - I only know the instruction “walk 1 step”? [We would write down “walk 1 step” X times ] 

What is a loop? [Something that keeps going for a long time.]

In a programming, a loop is an action or sequence of actions. Scratch has a loop that tells the computer to do the same thing a set number of times. Sometimes, you have to work harder to decide when to make the loop stop. Some loops go as long as the program is running.

What are things that you do that are loops?  [Blinking, heart beating, jumping jacks, walking] 

Can there be more than one block, or instruction, in a loop?  [Yes, loops commonly contain more than one block. Some examples are move then wait and  next costume then wait.]

A loop can contain as many instructions as the programmer desires. The program will run through all of the instructions in order until it reaches the end and then begin at the top of the list again for as many times as the loop is run.

 

Explore

Modify Project (25 minutes)

Hand out the Build-a-Band worksheet. Tell students that they will explore the Loops: Build-a-Band project (https://scratch.mit.edu/projects/245468136/) on their own by opening the project, reading the instructions, running the project, then following the instructions on their Build-a-Band worksheet.

Students will move seamlessly to modifying the project, as instructed on the worksheet. Remind students that they need to remix, share, and add the project to your studio so it is accessible to you and others.

 

In this activity, students will modify the project to do the following: 

Remind students to save and share their work before exiting Scratch.

Extensions:

  • Animate the Scratch cat to dance
  • Animate an instrument to move
  • Make parallel scripts to perform animation and play music at the same time

Reflect & Discuss

Journaling (10 minutes)

Give students a few minutes to record new blocks that were introduced today and reflect by answering the Journal Questions.

New Blocks and Concepts:

  • repeat__
  • Play sound ___ until done
  • Loop

Journal Questions:

  • What motion blocks did you use to make the instruments move?
  • What things could you do at the same time in this project using parallel scripts?

 

Assessment:

  • Student projects should be graded based on completion of all required elements.

Integration:

  • Music - Musical notes

Differentiation:

  • Prepare block definition sheets for students to add to their journals. Options include: List the block names (students fill in the definitions), block names and definitions provided (students match block names to the definitions).
  • Provide a list of the type and number of blocks needed to complete each activity.


Lesson 2: Creating with Loops (60 minutes)

Lesson Overview

Students create an animation in an open-ended, create project that brings together all they have learned.

Lesson At-a-Glance

Engage (10 minutes)

Explore (35 minutes)

Reflect (15 minutes)

Lesson Preparation

Student Materials

Explore

Teacher Materials

Engage

Engage 

Introductory Discussion  (10 minutes)

First review loops from last time. Project the loops review and ask the students questions and go through the answers.

How many times will the note E play?  [8] 

How many times will the note G play? [4 ] 

How many times will the note C play? [1]

Are the scripts the same or different? [Same. They both alternate playing sound and changing costume 3 times]

Describe the order of the script? [First switch costume. Then, 6 times, it will play C, play F, and change color. Last, it will play a drum roll]

Engage students in a discussion that reminds them of the different things they have learned in this curriculum.

Explain that they are going to review everything they have learned and use that to create a story.

What are the different kinds of events in Scratch?  [Green flag, sprite clicked, key pressed] 

How do you tell the user what events you used? [In the instructions in the project page ] 

What is parallelism? [when you program two actions to happen at the same time]

How do you make two scripts run in parallel in Scratch? [Use the same event block in both scripts.]

What does a repeat loop do in programming? [Do the same action(s) multiple times.]

Now introduce the project for today - an interactive story.

What are some blocks you might want to use for the sprites to talk to each other?  [say or think blocks] 

Where might you use parallel scripts? [To play music and dance or glide and dance at the same time] 

When might you want to use wait blocks? [when you want a sprite to wait until some other action finishes before doing something]

Explore

Create Project (35 minutes)

Introduce today’s activity: Create a new project and make an interactive story. You may give students more than one class period if you wish.

You should give students the following reminders (write on the board)

        Share and add the project to the studio

        Put instructions on their project page (so others can run their projects during the gallery walk)

        Run the project to test that it works as you expect.

Extensions:

  • Put multiple main characters on the front and have them each do a performance when clicked.
  • Experiment with different types of animation - using turn, move, point in direction, Change x by, and change y by.

Reflect & Discuss

Gallery Walk (15 minutes)

Give each student a stack of sticky notes.

Assessment:

  • Student projects should be graded based on completion of all required elements.
  • Student will complete the Animation: Written Assessment based on the concepts covered in this module.

Integration:

Art - Animation and drawing

Differentiation:

  • Prepare a block definition sheets to add to journals - block names listed (students fill in the definitions) or blocks and the definitions completed, students match block names to the definitions
  • Provide a list of the type and number of blocks needed to complete each activity

Standards

CSTA Standards

1B-AP-12 Modify, remix, or incorporate portions of an existing program into one's own work, to develop something new or add more advanced features. (P5.3)

1B-AP-14 Observe intellectual property rights and give appropriate attribution when creating or remixing programs. (P7.3)

1B-AP-15 Test and debug (identify and fix errors) a program or algorithm to ensure it runs as intended. (P6.1, P6.2)

1B-AP-17 Describe choices made during program development using code comments, presentations, and demonstrations. (P7.2)

1B-IC-21 Use public domain or creative commons media, and refrain from copying or using material created by others without permission. (P7.3)

2-AP-16 Incorporate existing code, media, and libraries into original programs, and give attribution. (P4.2, P5.2, P7.3)

ISTE Standards

1. Empowered Learner: Students leverage technology to take an active role in choosing, achieving and demonstrating competency in their learning goals, informed by the learning sciences. Students:

c. use technology to seek feedback that informs and improves their practice and to demonstrate their learning in a variety of ways.

d. understand the fundamental concepts of technology operations, demonstrate the ability to choose, use and troubleshoot current technologies and are able to transfer their knowledge to explore emerging technologies.

2. Digital Citizen: Students recognize the rights, responsibilities and opportunities of living, learning and working in an interconnected digital world, and they act and model in ways that are safe, legal and ethical. Students:

b. engage in positive, safe, legal and ethical behavior when using technology, including social interactions online or when using networked devices.

4. Innovative Designer: Students use a variety of technologies within a design process to identify and solve problems by creating new, useful or imaginative solutions.

a. know and use a deliberate design process for generating ideas, testing theories, creating innovative artifacts or solving authentic problems.

d. exhibit a tolerance for ambiguity, perseverance and the capacity to work with open-ended problems.

6. Creative Communicator: Students communicate clearly and express themselves creatively for a variety of purposes using the platforms, tools, styles, formats and digital media appropriate to their goals.

b. create original works or responsibly repurpose or remix digital resources into new creations.

Animation: Gaming Strand