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

#1 2011-10-27 12:43:38

aldenhorbach
New Scratcher
Registered: 2011-09-22
Posts: 23

timer??

ik this is a stupid question, but how do you make a timer count up from 0?

Offline

 

#2 2011-10-27 13:28:27

Rexpup
Scratcher
Registered: 2010-10-17
Posts: 100+

Re: timer??

<forever>
<wait( 1 )secsc>
<change{  }by(
<end>


http://i.imgur.com/QQH4J.gif

Offline

 

#3 2011-10-27 15:03:51

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: timer??

Rexpup wrote:

<forever>
<wait( 1 )secsc>
<change{  }by(
<end>

The wait x seconds isn't entirely accurate though (a few milliseconds out, but over time it adds up). In the sensing tab, look for the 'reset timer' button. Now put this script:

When green flag clicked
Reset timer

There is also a timer block with rounded edges which you can put in the equals, greater than or smaller than blocks, which you can then put in most control blocks.


Why

Offline

 

#4 2011-10-27 21:00:55

aldenhorbach
New Scratcher
Registered: 2011-09-22
Posts: 23

Re: timer??

thanks  smile  thats what i thought, but since there was a timer block i didnt know if there was an easier way...

smile
alden

Offline

 

Board footer