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.

13-minute video lesson
Teaching, worked examples and 20 practice questions solved step by step.
Watch free for a monthWhat your child will learn
- Explain forever loops
- Create animation with costumes and wait
- Choose repeat or forever
- Debug animations
The method
- Flag.
- Forever.
- Costume, move, wait.
- 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?
- Step 1: Read the code
- Step 2: turn, forever
Answer: the sprite spins round forever
Question 2
What does this program do?
- Step 1: Read the code
- Step 2: colour changes
Answer: the sprite keeps changing colour every half second
Question 3
How do you stop a forever loop?
- Step 1: red stop sign
Answer: click the red stop sign