STEP 8: Now let's use the new parameter inside the function!

Remember, all commands inside the function should have a ···· in front of them.

  • Go to GRAPHICS and . Drag Set Say Color inside the function.
  • Change the string in .set_say_color() to the parameter variable color.
  • Drop Say inside the function and click Run. Notice that the sprite's say text is aqua!

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
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)