PASO 6: ¡Hagamos que suceda algo cuando nuestro sprite alcance el objeto al que se dirige!
Haga clic en . Arrastra Collision a la parte inferior de tu programa.
Hacer clicCorre y observa lo que sucede cuando tu sprite choca con el sombrero.
Los eventos son un tipo especial de código que se ejecuta solo si sucede algo que desencadena el evento. A veces activamos eventos con el teclado o el ratón. En este caso, el evento se ejecutará cuando nuestro sprite choque con otro sprite.
To navigate the page using the TAB key, first press ESC to exit the code editor.
Are you already running a Codesters project in another tab or window?
Micro:bit can only connect to one web page at a time.
Try stopping other Codesters projects or closing
other tabs or windows that may be using your Micro:bit.
If that doesn't fix the problem try disconnecting your Micro:bit,
reloading this page, and reconnecting your Micro:bit.