Ahora necesitamos hacer algunos cambios a la figura car adentro del if statement.

  • Utiliza Turn Left para rotar el car 90 grados.
  • Set Size de car a 0.5.
  • Set x Speed de car a -2.

Esta vez al llamar a la función, los carros se posicionarán correctamente y se moverán de derecha a izquierda.

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)