PASO 12: Ahora hagamos que nuestra figura voltee de un lado a otro.

  • Ve a y arrastra afuera Flip Right Left.
  • Desde , arrastra afuera Wait.
  • Cambia el número en .wait() a 1.

El número en el comando Wait controla cuanto tiempo se detiene el escenario.

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

stage.set_background("footballfield2") sprite = codesters.Sprite("cheerleader1") sprite.move_down(150) sprite.flip_up_down() sprite.move_right(200) sprite.move_left(150) sprite.flip_up_down() stage.wait(2) sprite.move_up(50) sprite.turn_left(360) sprite.move_down(50) stage.wait(2)
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)