Using variables to create a timer

I am trying to create a timer that counts down using variables. For some reason it starts out well but then after 1 minute says "Invalid." I am trying to count time from 4 to 0 minutes.


I have the following Actions:

- Set variable (minutes) to value 4

- Substract 1 from variable (minutes) every 60 seconds

- Change contents of timeText (my textbox to show time) to show variable (minutes) every .1 sec

- Add "minutes left" to variable (minutes)


The timer says "Invalid" after the first minutes goes ends.

Discussions have been disabled for this post