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

#1 2008-07-20 09:01:40

melacwch
Scratcher
Registered: 2008-07-12
Posts: 2

about timer

if i want to make the cat move to right untile time=2s  how can i do?
i try to do like that
http://i263.photobucket.com/albums/ii123/melacwch001/1.jpg
but when timer=2 , the cat still move to right?
why?
who can tell me?

Offline

 

#2 2008-07-20 09:56:09

the_guardian
Scratcher
Registered: 2008-03-16
Posts: 98

Re: about timer

It might be because the timer is equal to 2 for a very brief time, and the loop might be missing it.  Try setting it to "if timer > 1.99".


Guardian 3D!  http://scratch.mit.edu/projects/the_guardian/169865

Offline

 

#3 2008-07-20 11:08:38

melacwch
Scratcher
Registered: 2008-07-12
Posts: 2

Re: about timer

OK thanks!
so it is a bugs?

Offline

 

#4 2008-07-20 11:34:46

Rukqo
Scratcher
Registered: 2008-01-17
Posts: 100+

Re: about timer

nope. sometimes the time just goes too fast for Scratch to record it. you can fix it by changing it to:
if time > 2
Try to always use bigger or smaller signs when using the timer.

Offline

 

#5 2008-07-20 17:09:19

AlanProjects
Scratcher
Registered: 2008-06-23
Posts: 500+

Re: about timer

[blocks]
<when green flag clicked>
<reset timer>
<repeat until><( <timer> <=> 2 )>
<change x by( 1 ) >
[/blocks]

Offline

 

Board footer