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

#1 2012-05-17 06:43:15

jeeves1982
New Scratcher
Registered: 2012-05-17
Posts: 2

Help Help

Is it possible to have a live clock on scratch.
I want to be able to have a clock running in real time whilst the user is playing a game.

Any help would be appreciated.

Thanks

Offline

 

#2 2012-05-17 07:10:31

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Help Help

It is almost impossible unless you ask the player to set the time. Some Scratch Modifications do have the"get time/date" block like in Panther, though I have downloaded it but not tried it.  tongue


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#3 2012-05-17 07:10:44

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Help Help

Yes, but, if you want it to match the "real world", you have to ask for the user to input the time, as Scratch doesn't let you connect a real clock directly.

To keep track of how much time has passed, just use the built-in timer block (under sensing).


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#4 2012-05-17 07:11:29

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Help Help

There isn't a Scratch block that can read the time on your computer, but there is a timer variable that will automatically keep track of the seconds.

Scratch Wiki article on the Timer

Lolol two posts in the time it took me to write my own post  tongue

Last edited by Jonathanpb (2012-05-17 07:11:55)


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#5 2012-05-17 07:12:18

jeeves1982
New Scratcher
Registered: 2012-05-17
Posts: 2

Re: Help Help

Thanks, is it possible to link it to a rss feed, or is it worth trying to do a time and getting it to add a second every second for example

Offline

 

#6 2012-05-17 07:23:51

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Help Help

jeeves1982 wrote:

Thanks, is it possible to link it to a rss feed, or is it worth trying to do a time and getting it to add a second every second for example

I have limited experience hacking into Scratch; I can say that, if you don't want to edit the Scratch source code, it is impossible.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer