STEP 4: We can put our fish sprite wherever we want! The stage is a coordinate plane with (0, 0) in the center.

  • Go to the section of the toolkit and drag Go To into the bottom of your program.
  • Click into the code editor and change the second number in the .go_to() command from -50 to -220.

Each location on the xy-coordinate plane can be described by two numbers written like this: (100, 50). The x-coordinate controls how the horizontal position, and the y-coordinate controls the vertical position.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("underwater") sprite = codesters.Sprite("fish")
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)