STEP 6: We also need x,y-coordinates for our net!

  • Click the LOGIC tab, then click .
  • Drag out Integer Variable to the bottom of your code.
  • Change the name to the left of the = sign from my_var to netx.
  • Change the integer after the equal sign from 25 to 90.

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)