Activity: Translation in x
I'M FINISHED WITH HOUR OF CODE!

STEP 6: Let's translate our sprite in the x direction.

We must slide the triangle to the right until it covers the target triangle completely.

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

stage.create_grid_overlay(50, "blue") sprite = codesters.Sprite("triangle") sprite.set_speed(1)
Support