Scrolling Objects

Animation - Parallax (Activity 4)

Video speed:

Overview

In this video, you will program the background objects to move to the left and right in response to the user. This will create the illusion of movement for the character sprite.

Instructions

  1. Program the "objects" sprite to move to the left when the walking sprite is moving to the right.
  2. Program the "objects" sprite to restart on the right edge of the stage when it reaches the left edge.
  3. Duplicate this code to make the "objects" sprite move to the right when the walking sprite is moving to the left.
  4. Program the "objects" sprite to hide and wait a random amount of time before reappearing on the screen.

X

Hey, club member! Sign in to get a badge for each activity you do!