Activity: Mission: Translate X and Y
I'M FINISHED WITH HOUR OF CODE!
img

Now that you have reviewed some basic transformations, you have a mission to complete.

  • For your first mission, use translations to move the sprite to the target triangle.
  • You will have to use 2 translation commands: one Translate_x and one Translate_y.
  • Change the number in the commands until you move the start triangle onto the target triangle.

sprite = codesters.Sprite("triangle") sprite.go_to(-200, -150) sprite.set_speed(1) sprite.say("Start")
Support