Skip to content
Menu

Year 4 (ages 8–9, Grade 3 in the US) · Computing · Loops in Scratch · Lesson 3

Forever loops and animation

Forever loops and animation in block coding: costumes, wait blocks, bouncing at the edge, choosing repeat or forever, and fixing animation bugs.

Exam boards: this lesson matches the AQA and Pearson Edexcel GCSE computing courses. Check which course your school follows.

Whiteboard video lesson: Forever loops and animation

13-minute video lesson

Teaching, worked examples and 20 practice questions solved step by step.

Watch free for a month

What your child will learn

  • Explain forever loops
  • Create animation with costumes and wait
  • Choose repeat or forever
  • Debug animations

The method

  1. Flag.
  2. Forever.
  3. Costume, move, wait.
  4. Test.

Key words: forever, loop, costume, animation, sprite, wait.

Worked examples

Worked examples from the lesson, with every step.

Question 1

What does this program do?

  1. Step 1: Read the code
  2. Step 2: turn, forever

Answer: the sprite spins round forever

Question 2

What does this program do?

  1. Step 1: Read the code
  2. Step 2: colour changes

Answer: the sprite keeps changing colour every half second

Question 3

How do you stop a forever loop?

  1. Step 1: red stop sign

Answer: click the red stop sign