Activity: Adjust Speed
I'M FINISHED WITH HOUR OF CODE!
img

You can make adjustments to the dance by changing the sprite's speed and the wait time.

  • Go to and drag Set Speed right below the sprite, above the dance moves.

Choose a larger number to speed up the dance and a smaller number to slow it down.

  • You can also try adjusting the wait time by changing the numbers in the .wait() commands.

You can use decimals, like 0.5, to make a wait time of less than 1 second.

stage.set_background("subway") sprite = codesters.Sprite("person10") sprite.move_down(75) sprite.flip_up_down() sprite.move_right(200) sprite.move_left(200) sprite.flip_up_down() stage.wait(2) sprite.move_up(50) sprite.turn_left(360) sprite.move_down(50) stage.wait(2) sprite.flip_right_left() stage.wait(1) sprite.flip_right_left() stage.wait(1) sprite.flip_right_left() stage.wait(1) sprite.flip_right_left() stage.wait(1) sprite.say("I love dancing!")
Support