This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-10-12 21:09:31

Ralphjos
Scratcher
Registered: 2009-10-10
Posts: 100+

Real-time Clock

Hey, Does anyone know how to make a real time (GMT) clock? As in like 12:00 AM, and it actually measures minutes, hours, but other things that the character does in game (for us would be seconds) but it would take 3 hours in the game... My game is based on adventure, and it would only make sence with a clock.  big_smile

    Regards,
       Ralphjos

Last edited by Ralphjos (2009-10-17 04:00:53)


http://i33.tinypic.com/2dt3j9j.gif

Offline

 

#2 2009-10-12 21:31:19

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Real-time Clock

If you want to get the time from the computer's clock, then no. But it's certainly possible to make the user set the time in-game before it begins. It might have a complicated script, though.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#3 2009-10-13 04:11:16

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Real-time Clock

Scratch has no way of knowing what time it is, besides input at the start of the project. Date and Time blocks have been suggested, but it's unknown if they are going to be in a future version of Scratch.


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#4 2009-10-13 15:13:57

chalkmarrow
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: Real-time Clock

Here's a cool way paddle2see incorporated a real-time clock, though it involves using the sensor connection feature:

http://scratchconnections.wik.is/index.php?title=User:Paddle2See&highlight=paddle2see

Offline

 

#5 2009-10-13 18:58:43

Ralphjos
Scratcher
Registered: 2009-10-10
Posts: 100+

Re: Real-time Clock

That is almost perfect... I just don't know what python is  yikes
I heard its a programming language script thingy that has something to do with Scratch and Java, but I've never seen it, nor do I want to spend my time learning it, (unless its worth it.) So... any other alternatives?  smile 
And I don't mind asking others to imput at start.... I just have no clue what the script will be.

    Regards,
       Ralphjos

Last edited by Ralphjos (2009-10-17 04:01:34)


http://i33.tinypic.com/2dt3j9j.gif

Offline

 

#6 2009-10-13 20:01:33

chalkmarrow
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: Real-time Clock

lolz. Well, nobody has ever regretted learning Python  smile   But I would say, other than that, there is no way to access the system clock directly via Scratch 1.4.

Last edited by chalkmarrow (2009-10-13 20:02:32)

Offline

 

#7 2009-11-15 17:39:34

UGWG
Scratcher
Registered: 2009-11-02
Posts: 40

Re: Real-time Clock

I could easily make a script that tells you the time  cool . It involves timer... And the user inputting the seconds, then a conversion to 100ths and adding the timer amount to the amount the user input...

Offline

 

#8 2009-11-15 18:40:40

UGWG
Scratcher
Registered: 2009-11-02
Posts: 40

Re: Real-time Clock

I made the image for script 1! It is at the following link:
http://fastfreefilehosting.com/file/271 … 1-gif.html
I will make picture 2. The user has to specify the time first though:(.
Afterward, I will finish the game. Keep Scratching!

Offline

 

#9 2009-11-15 18:44:11

UGWG
Scratcher
Registered: 2009-11-02
Posts: 40

Re: Real-time Clock

I think the other picture is at http://FastFreeFileHosting.com/file/271 … 2-gif.html. Okay? So, now I will make the game.

Offline

 

#10 2009-11-15 18:48:33

UGWG
Scratcher
Registered: 2009-11-02
Posts: 40

Re: Real-time Clock

The game is finished! press t to see the time in it. it uses a timer script! timer is very useful, thank scratch for making it.

Offline

 

#11 2009-11-15 18:50:30

UGWG
Scratcher
Registered: 2009-11-02
Posts: 40

Re: Real-time Clock

If you don't want time and just want it to be 3 hours, why don't you just say wait 10800 secs!!!!?!?!?!?!?!?!??!?!?!?!??!?!??!?!?!??!?!?!??!?!?!??!?!?!?!??!?!?!??!!?!??!?!?!??!?!??!?!?!?!???

Offline

 

#12 2009-11-16 10:41:23

Ralphjos_LT_Acc
Scratcher
Registered: 2009-11-11
Posts: 12

Re: Real-time Clock

UGWG wrote:

If you don't want time and just want it to be 3 hours, why don't you just say wait 10800 secs!!!!?!?!?!?!?!?!??!?!?!?!??!?!??!?!?!??!?!?!??!?!?!??!?!?!?!??!?!?!??!!?!??!?!?!??!?!??!?!?!?!???

Nice Necro-posting, I already created a project tutorial about this a long time ago after posting this topic of course. Nice try~

    Regards,
       Ralpj
os

Last edited by Ralphjos_LT_Acc (2009-11-16 10:42:12)

Offline

 

#13 2009-11-16 15:51:32

UGWG
Scratcher
Registered: 2009-11-02
Posts: 40

Re: Real-time Clock

Oh man!@#!324#$&@%(#*&($*&#(*$&(@*&($*#&($*&@(#*&$( I Put my hole evening into doing that :-(

Offline

 

Board footer