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

#1 2011-07-01 03:59:44

ilovepineapplelumps
New Scratcher
Registered: 2011-06-24
Posts: 6

Countdown Timer-How do I set it?

How do you set a countdown timer on Scratch?

It's a game about delivering food in time and the waitress has like a minute to do it but I don't know how to set the timer and minus 1 second each second.

Offline

 

#2 2011-07-01 05:09:42

LordSydney
Scratcher
Registered: 2011-04-20
Posts: 100+

Re: Countdown Timer-How do I set it?

You can't do that with the timer. You may reset the timer and count up to the designated time, but the timer can not count downward. If you really want you can make a variable and create a script saying,

/forever/
[ wait (1) second]
[ change [timer^] by (-1)
/    ->^/


Need help with BBCode?
http://i.imgur.com/IfWrL.gifAlso check this out!http://i.imgur.com/YgF2v.gif

Offline

 

#3 2011-07-01 05:51:40

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Countdown Timer-How do I set it?

But don't forgot to set the timer to 60 or some other number before the forever loop  big_smile


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#4 2011-07-01 07:18:40

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Countdown Timer-How do I set it?

You can make a countdown timer. Something like this:

http://dl.dropbox.com/u/11532575/forums/timercountdown.gif
Image will show up when Dropbox works

Where you can change that 60 to whatever you need the max time to be.

Last edited by LS97 (2011-07-01 07:20:09)

Offline

 

#5 2011-07-01 12:03:37

PlutoIsHades
Scratcher
Registered: 2010-10-18
Posts: 1000+

Re: Countdown Timer-How do I set it?

You can use a variable as a timer, also.
Try this:

When flag clicked
Set (variable) Timer to 60
Say "Go!" for 1 secs
Repeat 60:
    Wait 1 secs
    Change Timer by -1
If Timer=0
    Say "Time's up!"

Sorry for writing it out.  I'm not good with the blocks yet on the forums.

Hope this helps!

Last edited by PlutoIsHades (2011-07-01 12:08:42)


Minecraft, Redwall, and Cyberchase fan, and PROUD.

Offline

 

#6 2011-07-02 01:40:53

ilovepineapplelumps
New Scratcher
Registered: 2011-06-24
Posts: 6

Re: Countdown Timer-How do I set it?

Thanks soo much for the help

i just hope it works  smile

Offline

 

Board footer