STEP 8: If "fish1" is the random image, let's show the clown fish on the stage.

  • Add another if inside the interval event. It should be indented 4 spaces with a ····.
  • Change the if statement to test if the rand_img is "fish1".
  • Use Change Image inside of the if statement to change the fish sprite's image to "fish1".

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)