STEP 9: We want our fish to appear at a random (x,y) coordinate on the stage. We'll use our rand_x and rand_y variables in the interval event to make sure that happens once every two seconds.

  • Go to and drag Go To inside the interval event, with a ····.
  • Change the name in front of the .go_to() command to fish.
  • Change the parameters in .go_to() to rand_x and rand_y.


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)