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

#1 2009-01-26 19:36:11

kunhunjon
Scratcher
Registered: 2009-01-26
Posts: 1

timer

how do you set the timer i cant it just has a script called resset timer and thats it?
:rolleyes http://scratch.mit.edu/forums/post.php?fid=8#req_message

Offline

 

#2 2009-01-26 20:35:46

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: timer

Reset sets the timer to 0. The timer always counts upward. If you want a timer that counts 60 seconds, try this:

[blocks]<reset timer>
<wait until><( <timer> <>> 60 )>[/blocks]


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#3 2009-01-28 22:04:55

blahdeblah
Scratcher
Registered: 2008-02-19
Posts: 45

Re: timer

the timer always runs. If you want, you can use a variable as a timer.
As in:
Set (variable) to (a number)
Repeat until (variable) = 0
Change variable by -1
Wait 1 second
End Repeat

Offline

 

#4 2009-01-30 11:26:54

prokohtu
Scratcher
Registered: 2008-06-19
Posts: 100+

Re: timer

How can I stop the timer when I want? Please, help.


Scratch's most realistic F1 simulator
https://lh6.googleusercontent.com/-qIdF-SzbTzw/UU29tK-FYvI/AAAAAAAAAOs/vRFKr1Iwldc/s225/logo.jpg

Offline

 

#5 2009-01-31 05:56:03

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: timer

prokohtu wrote:

How can I stop the timer when I want? Please, help.

You can't. Even when a project is topped, the timer runs. But you can use a varible to store the timers value.

[blocks]
<when I receive[ stop timer
<set{ mytime }to( <timer>
[/blocks]


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

Board footer