LOGIC ERROR: This program has a common logic error in it. Let's fix it!

When managing multiple sprites, a common mistake is to assign actions to the wrong sprite.

  • Click Run and look at the code in the editor. Notice anything off?
  • The rock should sink and the fish should get out of the way, but that's not what happens.
  • Change the name in front of one of the .glide_to() actions so the rock sinks straight down.

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)