STEP 6: Now, let's assign a location for the net. We'll use its unique variable name to assign actions in the program.

  • Go to the section of the toolkit and drag Go To into your program.
  • Change the first number in the .go_to() command to 215 and change the second number to 175.
  • Change the name in front of the .go_to() command to net.

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

stage.set_background("halfcourt") sprite = codesters.Sprite("player1") sprite.go_to(-175, -150) net = codesters.Sprite("basketballnet")
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)