When we reach the goal, the game ends. We need to plan some different actions for our sprite.

  • Inside the event and outside the if statement, use another if to test if name is equal to "ufo".
  • In the new if statement, use Sprite Gravity Off and Go To to move the sprite to the top of the stage.
  • Make your character say something and spin around once.

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)