Flow Control / Published: 4 years ago

Horizontal Scrolling with Repeating Sprite

by Fat Grub

Level: Intermediate

Time to Complete: ~5 minutes

This is a very common 2D horizontal scrolling technique using two sprites that are repeated in a sequence based on the screen size. It uses a simple formula to move the sprites across the screen based on the calculated position.

Challenges / Extension Activities:
Add this a great scrolling technique to a platformer game to extend your game levels beyond the Scratch stage default of 480px.

This tutorial is part of the series: Scrolling Backgrounds