Using variables to create a timer

Hi, msrev


I ended up using the static text box method, but I didn't get around to dealing with the negative time. I literally ran out of time to work on the project, so I ended up hiding the time once it counted down to zero. Thanks for the tip! Now I can set the condition so my negative time problem does not happen.


 


 


Tia said: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