FUNCTIONS: Functions require a function call before they will do anything!

  • From the toolkit, drag out Park so that it is indented once underneath stage.clear().
  • In the LOGIC tab, from drag Function Call under the new function. Don't indent this line!
  • Change the name in the function call from my_function() to park_scene().
  • Click Run to see the park scene run after all the other scenes!

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)