STEP 3: Now we're ready to create the loop to make our dragons.

  • In LOGIC, go to and drag in Loop with Range.
  • Go to and drag in Random Integer INSIDE your loop.
  • Change my_var to x. This will be the x-coordinate for our dragons.
  • Change 1 to -250 and 10 to 250. This makes it so the dragon can appear anywhere on the stage.

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)