timer
Posted: Tue Sep 10, 2013 12:52 pm
hi,
i would like a code that count backwords one minute (60 seconds).
best regards'
Itay
i would like a code that count backwords one minute (60 seconds).
best regards'
Itay
Questions and answers about the LiveCode platform.
https://www.forums.livecode.com/
Code: Select all
put the seconds into theCounter
put theCounter into theTime
repeat until theCounter - theTime >= 60
put 60 - (theCounter - theTime) into field 1
put the seconds into theCounter
wait for 0.3 seconds with messages
end repeat
Code: Select all
on mouseUp
put the seconds into sTime
put sTime + 60 into eTime
countdown sTime,eTime
end mouseUp
on countDown sTime,eTime
if the seconds > eTime then exit to top
put 60 - (the seconds - sTime) into fld 1
send "countDown sTime,eTime" to me in 1
end countDown