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

#1 2012-11-13 09:24:37

18ToddPoe
New Scratcher
Registered: 2012-11-13
Posts: 2

countdown timer

I dont know how to make a countdown timer in scratch HELP

Offline

 

#2 2012-11-13 09:29:37

shiguy101
Scratcher
Registered: 2010-11-17
Posts: 1000+

Re: countdown timer

 when gf clicked
set [ timer v] to (15)
 repeat  (15)
change [ timer v] by (-1) 
wait (1) secs  
 end
  

Last edited by shiguy101 (2012-11-13 09:32:26)

Offline

 

#3 2012-11-14 08:03:57

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: countdown timer

shiguy101 wrote:

 when gf clicked
set [ timer v] to (15)
 repeat  (15)
change [ timer v] by (-1) 
wait (0.98) secs  
 end
  

0.98 is more accurate than 1.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#4 2012-11-14 12:18:49

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: countdown timer


reset timer

repeat until <(timer) > (WANTED VALUE)>  

set [time remaining v] to ((WANTED VALUE) - (timer))

end

say [Time up!] for (2) secs


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

Board footer