STEP 9: Let's place the ufo sprites along the y-axis.

We'll use the += sign to add value to the variable, y, each time the loop runs.

  • Go to and drag Add Value inside the loop.
  • Change the name of the variable to y.
  • Change the value being added to 75. This places our ufo's 75 pixels apart.

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)