Computer Science Canada

Programmed CountDown Timer ???

Author:  montesser [ Wed Nov 17, 2010 9:33 am ]
Post subject:  Programmed CountDown Timer ???

What is it you are trying to achieve?
Looking to make a timer (Boxed or un boxed), to be able to have it seem like a system launch of a space ship,


What is the problem you are having?
Im new to turing and am still learning, So far i have tried the decreasing count code, just wondering if there is a way to make an program box for just the countdown and to make it change 1 number at a time not just show them all in a straight or vertical line


Describe what you have tried to solve this problem
Ive only tried different modes with the decreasing count. Please help if you are able to.



Turing:


for decreasing count : 5 .. 1
    put count : 5



Please specify what version of Turing you are using
Turing 4.0.4c

Author:  TokenHerbz [ Wed Nov 17, 2010 12:49 pm ]
Post subject:  RE:Programmed CountDown Timer ???

you could draw a box around it, try using Draw.FillThickBox (x,y,x+size,y+size,color), and also try adding in a delay (150) or so, right after the put. should be what your looking for.

Author:  montesser [ Tue Nov 23, 2010 2:18 pm ]
Post subject:  Re: Programmed CountDown Timer ???

Thank you kindly, it wasn't quite what i was trying for, but it works great, Thank you again


+ 5 Bits (sorry dont have much, and still lots of help needed)

Author:  TokenHerbz [ Tue Nov 23, 2010 3:50 pm ]
Post subject:  RE:Programmed CountDown Timer ???

did you mean more like this?
code:

for decreasing count : 5 .. 1
    put count : 5
    delay (500)
end for


or something more like:
code:

for decreasing count : 5 .. 1
    put "T MINUS: ", count
    delay (500)
    cls
end for
put "BLAST OFF!"


of maybe something more user interactive? we could put this as a function Smile well let me know!! thx for bits

Author:  ecookman [ Tue Nov 23, 2010 4:17 pm ]
Post subject:  RE:Programmed CountDown Timer ???

if you look up my count down timer, it counts down from a date, if you want you could have a user enter that date and time.


: