Step 17: Timer Code 1

Goal:


Let’s now set up a timer control with a forever block.

We will use this to subtract 1 from the timer variable each second.

Steps:

  1. From Events, place a when green flag clicked block.
  2. From Control, place a forever block.

Code: