Skip to content
Computing · Year 5

Active learning ideas

Animating with Loops

Active learning builds accurate mental models of loops by letting students see repetition unfold in real time. When students test code changes immediately during animation tasks, they connect abstract concepts like repeat counts and delays to visible motion outcomes. This hands-on approach clarifies how loops run multiple times and how timing affects animation speed.

National Curriculum Attainment TargetsKS2: Computing - Programming and AlgorithmsKS2: Computing - Creating Media
20–45 minPairs → Whole Class4 activities

Activity 01

Project-Based Learning35 min · Pairs

Pair Programming: Walking Character

Pairs select a sprite with sequential walking costumes. They build a repeat loop to cycle costumes while gliding the sprite forward, then test three wait times and record speed observations. Pairs combine animations into a class parade.

Analyze how changing a sprite's costume inside a loop creates animation.

Facilitation TipDuring Pair Programming: Walking Character, circulate and ask each pair to explain how the repeat block triggers the walking animation, focusing on the connection between the repeat count and costume changes.

What to look forAsk students to show you a sprite in their programming environment. Then, ask them to explain in one sentence how changing the 'wait' block inside a loop would make the sprite move faster or slower.

ApplyAnalyzeEvaluateCreateSelf-ManagementRelationship SkillsDecision-Making
Generate Complete Lesson

Activity 02

Project-Based Learning45 min · Small Groups

Small Groups: Bouncing Ball Challenge

Groups create a forever loop that changes a ball sprite's Y position up and down with wait blocks. They add rotation for realism and sound effects timed to bounces. Groups demo and vote on smoothest animations.

Construct a simple animation of a character walking using a loop.

Facilitation TipIn Small Groups: Bouncing Ball Challenge, ensure each group tests their loop multiple times with different wait values, timing each bounce to verify their predictions.

What to look forProvide students with a printed image of a simple sprite with two different costumes. Ask them to draw arrows indicating the sequence of costumes needed within a loop to make the sprite appear to walk, and label the loop block.

ApplyAnalyzeEvaluateCreateSelf-ManagementRelationship SkillsDecision-Making
Generate Complete Lesson

Activity 03

Project-Based Learning20 min · Whole Class

Whole Class: Speed Prediction Relay

Display a base animation script on the board. Students predict in a quick poll how halving wait time affects speed, then run variations as a class. Discuss matches between predictions and results.

Predict how changing the delay within a loop affects the speed of an animation.

Facilitation TipFor the Speed Prediction Relay, have students record their predicted speeds on mini-whiteboards before testing, then compare predictions to actual timings to reinforce the relationship between wait times and animation speed.

What to look forPose the question: 'If you wanted a character to wave its arm, what would you need to change inside the loop to make the wave look realistic, not too fast or too slow?' Guide students to discuss costume changes and delay values.

ApplyAnalyzeEvaluateCreateSelf-ManagementRelationship SkillsDecision-Making
Generate Complete Lesson

Activity 04

Project-Based Learning25 min · Individual

Individual: Debug Flickering Sprite

Provide code with a repeat loop missing wait blocks, causing flicker. Students identify the issue, add waits, and customize the animation with their own costumes. Share one fix with a partner.

Analyze how changing a sprite's costume inside a loop creates animation.

Facilitation TipDuring Debug Flickering Sprite, ask students to identify which costume or wait block is causing the flicker before offering specific guidance.

What to look forAsk students to show you a sprite in their programming environment. Then, ask them to explain in one sentence how changing the 'wait' block inside a loop would make the sprite move faster or slower.

ApplyAnalyzeEvaluateCreateSelf-ManagementRelationship SkillsDecision-Making
Generate Complete Lesson

A few notes on teaching this unit

Teach loops by starting with visible counters or speech bubbles that increment with each loop iteration, so students see the repetition in action. Avoid rushing past timing concepts; spend time on how wait blocks inside loops control speed. Research shows that students grasp loops better when they experience both the cause (repeat blocks) and effect (animation motion) together, rather than isolating the concept.

Successful learning shows when students can explain how loop blocks create smooth movement and adjust repeat counts or wait times to control animation speed. Students should also evaluate costume sequences for realistic motion and debug animations where the sprite flickers or moves unnaturally.


Watch Out for These Misconceptions

  • During Pair Programming: Walking Character, watch for students who believe the loop runs only once or who skip testing the animation with different repeat counts.

    Ask the pair to run the code with the speech bubble counter visible and change the repeat count, then describe what happens each time the loop executes.

  • During Small Groups: Bouncing Ball Challenge, watch for students who adjust only the repeat count to change speed, ignoring the wait block inside the loop.

    Challenge the group to predict which change—repeat count or wait time—will make the ball bounce faster, then test both to observe the effect.

  • During Debug Flickering Sprite, watch for students who assume any costume sequence will animate smoothly if the loop runs many times.

    Have them compare the costume order to the motion they want and adjust the sequence or add a wait block between costume changes to reduce flickering.


Methods used in this brief