Activity: Speed
img

STEP 8: Our sprite is moving too fast!

We need to place the .set_speed() command before any movement that will use that speed setting.

  • In , drag out Set Speed. Drop it before the .move_down() command.
  • Try changing the integer in the .set_speed() command. Can you make the sprite move faster? Slower?
  • Set the integer to the speed that you want. Let's try 3!

stage.set_background("concert") sprite = codesters.Sprite("person1") sprite.move_down(100) sprite.flip_up_down() sprite.move_right(150) sprite.move_left(200) sprite.flip_up_down()
Support