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

#1 2011-04-16 20:55:03

bobbyjenks
New Scratcher
Registered: 2011-04-13
Posts: 4

Timer

How do you set the timer to 90 seconds and decrease from there until the whole thing stops at 0 seconds

Offline

 

#2 2011-04-16 21:16:02

lilacfuzz101
Scratcher
Registered: 2010-05-22
Posts: 1000+

Re: Timer

bobbyjenks wrote:

How do you set the timer to 90 seconds and decrease from there until the whole thing stops at 0 seconds

you probably can't use the timer itself, but you could create a variable to do that.
[blocks]

<set{ time }to( 90)
<repeat until><( <{ time }> <=> 0 )>
<wait( 1 )secsc>
<change{time  }by( -1)
[/blocks]

something like that


http://25.media.tumblr.com/tumblr_lzqaicLrY01r5wdo7o1_500.gif

Offline

 

#3 2011-04-16 21:24:54

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Timer

You can't make the timer count down, but you can just wait until it's counted up to 90 seconds, like this:
http://i56.tinypic.com/10f6j4h.gif

Hope that helps!


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2011-04-19 14:29:35

The_Dancing_Donut
Scratcher
Registered: 2010-08-03
Posts: 1000+

Re: Timer

^^ Harakou speaks the truth.

In a way, the timer is quite pointless. It is easily recreated as a variable and that would add more possibilities.  smile


Offending strangers since 2010.

Offline

 

#5 2011-04-19 14:31:19

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Timer

lilacfuzz101 wrote:

bobbyjenks wrote:

How do you set the timer to 90 seconds and decrease from there until the whole thing stops at 0 seconds

you probably can't use the timer itself, but you could create a variable to do that.
[blocks]

<set{ time }to( 90)
<repeat until><( <{ time }> <=> 0 )>
<wait( 1 )secsc>
<change{time  }by( -1)
[/blocks]

something like that

If you want a countdown use this.

Offline

 

Board footer