Customize Attributes

Animation - Parallax (Activity 4)

Video speed:

Overview

In this video, you will change the speed of the objects based on their distance from the character. Objects that are farther away will move more slowly than objects that are closer. 

Instructions

  1. Set the costume and height.
  2. Create a distance variable, and set the distance.
  3. Set the size and speed of the sprite to be inversely proportional to the distance.

X

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