• Adentro del evento, utiliza un if or statement para probar si name es "rock" o si name es "garbage".
  • Utiliza Remove Sprite para remover el hit_sprite del escenario.
  • Utiliza Subtract Value para restar 1 de el contador de lives.
  • Utiliza Update Display para actualizar el lives_display con el nuevo valor de lives.

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)