DEMO 1: In this interactive activity, you'll learn about how we use variables to refer to sprites!

In this lesson, you'll use variable names to refer to different sprites. A variable is a name that stores a value.

To assign specific actions to a specific sprite, you use the sprite's variable name. This is called dot notation.

  • Click Run to see the animation. Follow the instructions on the stage to complete the activity.
  • When you're finished, click Submit and Next to see the Check for Understanding questions.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)