Movement and Animation / Published: 6 years ago

Bouncing Off Walls in Scratch

by Chris Dunne

Level: Intermediate

Time to Complete: ~5 minutes

In this short tutorial, you'll learn how to force a Sprite to navigate around obstacles, such as maze walls, using a clever hidden bounding box technique. Once complete your Sprite will be unable to "pass-through" background objects matching specific colors.

Challenges / Extension Activities:
Apply this great technique to your own maze or platformer game.

This tutorial is part of the series: Core Concepts of Platformer Games