STEP 7: Let's translate our triangle in the y direction.

We must slide the triangle until it covers the target triangle.

  • Go to and drag Translate y into your program, then click Run.
  • Change the number in sprite.translate_y(50) until the triangle overlaps with the target triangle.
  • Click Submit and Next once the triangle overlaps the target.

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

stage.create_grid_overlay(50, "blue") sprite = codesters.Sprite("triangle") sprite.set_speed(1)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)