PASO 3 : Ahora estamos listos para crear el bucle para hacer nuestros dragones.

  • En LÓGICA, vaya a y arrastre Loop with Range .
  • Ir a y arrastre Random Integer DENTRO de su ciclo.
  • Cambie my_var a x . Esta será la coordenada x de nuestros dragones.
  • Cambie 1 a -250 y 10 a 250 . Esto hace que el dragón pueda aparecer en cualquier parte del escenario.

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)