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

#1 2009-09-25 19:53:01

leon0
Scratcher
Registered: 2009-08-03
Posts: 21

:

i am trying to make a time watch thing and you have to put the time in it so whan thay put in the time this happens
<when green flag clicked>
<{ ask whats the time }>
<{ 3:30 }>
<set{ time }to(<{answer }>
<forever>
<if><(<timer>  <=> 60 )>
<reset timer>
<change{ time }by(<{0:01  }>
<end>
<end>

and i cant change by 0:01 and ever body will put : so how to i fix this

Offline

 

#2 2009-09-25 21:10:56

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: :

It seems you have mistook the variable and the timer and mixed them up  smile

To use the script your trying it would need to be all of that up to the

"If timer = 60" part.

Change that to
"
If (Variable block timer) <{ timer }> = 60 "

"<set{ Timer }to( 0 "

^^ Try that and it should work  smile

Last edited by 06dknibbs (2009-09-25 21:11:28)


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#3 2009-09-26 10:18:02

WeirdF
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: :

How about just doing this:
[blocks]<when green flag clicked>
<reset timer>
<forever>
<set{ timer }to( <timer>
<if><( <timer> <>> 60 )>
<reset timer>
<end>
<end>[/blocks]

Hope this helps.


http://i.cr3ation.co.uk/dl/s1/gif/847032b8a331def77529b6a0384db1fe_handfingers.gif

Offline

 

#4 2009-09-27 00:03:16

leon0
Scratcher
Registered: 2009-08-03
Posts: 21

Re: :

no no.
when you input the time it wood be like 3:30 and evey 60secs (is a min so) 60 secs in the timer it will chang the time by so it wood turn to 3:31.
it dos not desplay secs.
heres a explue exsmapul

Offline

 

#5 2009-09-27 00:06:33

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: :

It's not supposed to display hours and minutes - just seconds.

Offline

 

Board footer