STEP 11: Time to count how much time has passed!
Variables created OUTSIDE an event can't be changed INSIDE an event. We use the keyword global to make an exception to this rule. global lets us use a variable inside and outside of an event.
- In LOGIC, click on and drag out Global Variable INSIDE your interval event.
- Change the variable after global from my_var to time.