STEP 15: Let's keep track of how much time has passed.
- First, our interval event is going too slow. We want our knight to celebrate RIGHT after they win.
- Change the second parameter inside (interval, 2) from 2 to 1 to make our interval event run each second.
- Inside , drag in Global Variable to the TOP and INSIDE your interval event.
- Change my_var to timer. We'll use this variable in our next activity.
To navigate the page using the TAB key, first press ESC to exit the code editor.