Countdown Clock Timer

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
FayJiy
Posts: 1
Joined: Thu Jun 12, 2014 10:27 pm

Countdown Clock Timer

Post by FayJiy » Thu Jun 12, 2014 10:36 pm

Hi

I've been using LiveCode as my programming language, I love it and it's great. However I am stuck on how to create a simple countdown clock with a minute and second display. I have successfully made a countdown, but only using second with no unit.

It would be awesome if someone could help me on programming the countdown clock with minutes and seconds display

Thanks

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: Countdown Clock Timer

Post by sefrojones » Thu Jun 12, 2014 10:50 pm

See the (soon to be updated) scripting conference stack about Dates and Time here:

http://www.hyperactivesw.com/revscriptc ... ences.html


keep in mind that when the stack is referring to "Revolution" or "transcript" it means "LiveCode". other than that it's a good starting point for understanding dates, time, and timers.

Hope this was helpful!

--Sefro

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Countdown Clock Timer

Post by Simon » Fri Jun 13, 2014 2:09 am

There was a great thread on this:
http://forums.livecode.com/viewtopic.ph ... 58&p=91125
it digs into accurate timers.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Countdown Clock Timer

Post by [-hh] » Fri Jun 13, 2014 7:55 pm

..........
Last edited by [-hh] on Wed Aug 13, 2014 2:27 pm, edited 1 time in total.
shiftLock happens

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4003
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Countdown Clock Timer

Post by bn » Fri Jun 13, 2014 10:27 pm

Hi FayJly,

I made a little countDown timer as a way to do it.

The main scripts are in the card script.
You would have to be familiar with "send in time" to understand the script. "Send in time" triggers a message in the specified time intervall.

Kind regards
Bernd
Attachments
countDownTimer.livecode.zip
(2.16 KiB) Downloaded 609 times

Post Reply

Return to “Games”