STEP 4: We are now ready to create our soccerball! We know the x-coordinate is -80, but the y-coordinate is random: we will be surprised every time!

  • Click GRAPHICS, then click and drag in Sprite at Position.
  • Change the image label from "codester" to "soccerball"
  • Change the x-coordinate from 0 to ballx and the y-coordinate from 0 to bally .

stage.set_axis(100) stage.create_grid_overlay(10, "grey") stage.set_background("soccerfield") ballx = -80 bally = random.randint(-100,100)