TV on a Rolling Cart

How to Make a Scrolling Background in Scratch

From Scratch

How to Make a Scrolling Background in Scratch
7 min3rd4th5th6thTechnology
access

Summary

A project tutorial creating the illusion that a character is running or driving by scrolling the background behind it, using loops and changing x-position -- a step up in using repetition with purpose.

Viewer safety

All ages
Common Sense Media — not yet ratedIMDb Parents Guide — not yet rated

Our rating is a quick teacher-to-teacher guide — preview before showing.

Teaching resources

Discussion questions

Discussion

This video makes a still sprite look like it's running by scrolling the background instead.

  1. What's actually moving in this project -- the sprite or the background?
  2. What block repeats over and over to make the scrolling happen?
  3. Why is scrolling the background a clever trick instead of moving the sprite itself?

Quick work-a-long

Words to know: loop, scroll, x-position.

Try it: Use a forever loop to slide a backdrop sprite a few steps to the left, then reset it when it's off-screen.

How to Make a Scrolling Background in Scratch — TV on a Rolling Cart