STEP 13: Let's add some more actions to the function! Make sure these are all INSIDE the function!

  • From add Treasure Chest INSIDE reward_scene() and name the sprite treasure.
  • Position treasure at (0, -100) so it doesn't block the wizard! (Hint: add coordinates after the image label!)
  • In LOGIC, from drag Function Call to into your program, OUTSIDE the function.
  • Change the name of the function in the function call to reward_scene().

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)