STEP 6: Each coin needs to say its value as it drops, so the player can try to quickly add up the savings in the bank!

  • In GRAPHICS, click and drop Say for Time indented inside the loop.
  • Assign .say() to the piggy bank by changing the variable name before .say() from sprite to bank.
  • Replace the string in .say() with the variable value.
  • Change the number 2 after the comma to the float 0.5 so that the bank says the value quickly!

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)