• Usa if para probar si name es igual al nombre de la imagen del zombi que elegiste, como "zombie2".

Establece los siguientes comandos para ejecutar si el héroe choca con tu "zombie":

  • Utiliza Remove Sprite para remover el hit_sprite del escenario.
  • Utiliza Say para hacer al sprite decir "ouch!".
  • Disminuye 1 de score con Subtract Value. Y actualiza elscore_board con Update Dispaly.

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)