STEP 6: Let's change the y-coordinate by 100 each time the loop runs.

Remember, we can use add value to change the value of a variable inside a loop. In this case, we're changing the y-value, so the roads are all spaced vertically!

  • Go to and Set Opacity of the road to 0.2 inside the loop
  • Use Add Value inside the loop to add 100 pixels to y every time the loop runs.

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)