FUNCTIONS: Let's make our own function to create a new scene!

  • From the toolkit, drag Define Function to the bottom of the program.
  • Change the name of the function from my_function to park_scene.
  • In the GRAPHICS tab and the toolkit, place Clear Stage indented once under the function.
  • Click Run and watch the stage. Click Submit and Next to move on.

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)