PASO 10: Hagamos que nuestros ovnis se muevan a lo largo del eje x a velocidades aleatorias.

  • Ir a y suelte Random Integer con sangría dentro del ciclo for.
  • Cambie el nombre de la variable de my_var a rand_speed .
  • Cambie el rango para que cree un número aleatorio de (- 2 , 2 ) .
  • En GRÁFICOS, use Set x Speed en el bucle para establecer la velocidad del rand_speed ufo

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

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)