STEP 9: The net is facing the wrong way! Let's flip the net.

  • Change the name of the variable storing "soccernet" from sprite to net.
  • Click and drag out Flip Right Left.
  • Change the name in front of .flip_right_left() from sprite to net to assign it to the net!


stage.set_axis(100) stage.create_grid_overlay(10, "grey") stage.set_background("soccerfield") ballx = -80 bally = random.randint(-100,100) # sprite = codesters.Sprite("image", x, y) ball = codesters.Sprite("soccerball", ballx, bally) netx = 90 nety = random.randint(-100,100) # sprite = codesters.Sprite("image", x, y) sprite = codesters.Sprite("soccernet", netx, nety)