STEP 17: Let's set up what happens if the hit_sprite is one of our ufo's!

  • Go to and drag out if. Drop it inside the collision event, so that it has a ···· in front of it.
  • Change the test variable to image and the test value to "ufo".
  • Go to and use Say to have the hit_sprite say "Watch Out!".
  • From , use Go To to move the sprite back to its starting position: (0,-240).

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
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)