Poll

What is your favorite pie?

Apple Pie
Pumpkin Pie
Pecan Pie
Shepards Pie
Other(Post in comments)

Author Topic: How do you make a clock using events?  (Read 1467 times)

I want to know how to make a clock thing that counts minutes and hours (Maybe seconds too)



on print overflow events, but Kalphiter has clock events/bricks on his website

on print overflow events, but Kalphiter has clock events/bricks on his website

Why did you just quote him?

Or you use vce and set up a relay loop thats delayed by a second, incrementing a print brick and a variable by one and use if statements to figure out when the count needs to be rest, ex. minute 59 to minute zero and hour 12 to hour 1.  I don't see whats so hard about giving this guy an answer.

You don't need VCE for clocks.
(0000) onActivate > self > fireRelay
(1000) onRelay > self > fireRelay
(0000) onRelay > self > incrementPrintCount
(0000) onPrintCountOverflow > somethingicantrememberbecause imnotathomesocansomeonefinish this




I made a clock using relays.

I had to use a double relay for the minute but it did work, only problem it didnt work when I left the server and changing the time didnt work out all that well.

You have to use relays, on print overflow, etc.

Shouldnt be to hard to find out.



on print overflow events, but Kalphiter has clock events/bricks on his website
What's his website? Link?
I want clock events :D
« Last Edit: April 30, 2011, 09:38:11 PM by GLaDOS (Portal) »