STEP 9: Let's change the default code to customize our collision event.

  • Click into the code editor inside the collision event.
  • Delete the line: ····sprite.go_to(0,0)¬
  • Now our sprite will stay where it is and the other sprite will "hide" so it looks like our sprite picked it up!

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)