STEP 7: Let's make things tricky by adding gravity to our stage, which will make the net bounce up and down.

  • Click to open that section of the toolkit.
  • Drag Set Gravity into your program.
  • Drag Sprite Gravity Off into your program. This stops your sprite from falling.
  • Click Run to see your work. Click Submit and Next to move on.

stage.set_background("halfcourt") sprite = codesters.Sprite("player1") sprite.go_to(-175, -150) net = codesters.Sprite("basketballnet") net.go_to(215, 175)