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

#1 2012-07-18 08:20:13

30067
New Scratcher
Registered: 2012-06-25
Posts: 8

How to change the background?

hi how do you add a timer that counts down from 60seconds to 0????
please reply as it is a school project!!!!
sxxxxxxxxxx

Offline

 

#2 2012-07-18 08:26:11

sportsdude6
Scratcher
Registered: 2011-07-25
Posts: 1000+

Re: How to change the background?

This goes in questions about scratch-and don't spam the letter x

Offline

 

#3 2012-07-18 08:34:21

LightFlash
Scratcher
Registered: 2012-07-17
Posts: 75

Re: How to change the background?

when gf clicked
set [timer v] to [60]
repeat until <(timer) < [0.1]>
wait (0.97) secs // Because of script delay
change [timer v] by (-1)
stop script

Offline

 

#4 2012-07-18 08:35:29

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

Re: How to change the background?

LightFlash wrote:

when gf clicked
set [timer v] to [60]
repeat until <(timer) < [0.1]>
wait (0.97) secs // Because of script delay
change [timer v] by (-1)
end
stop script

Scripts fixed.


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

Offline

 

#5 2012-07-18 21:28:38

360-International
Scratcher
Registered: 2011-07-17
Posts: 100+

Re: How to change the background?

This is the most accurate method. Script delays vary from computer to computer and will not always be 0.01 seconds.

reset timer
repeat until <(countdown) < (0)>
set [countdown v] to ((60) - (timer))
end
set [countdown v] to (0)

Last edited by 360-International (2012-07-18 21:28:50)


https://lh4.googleusercontent.com/Oib6kyze-OrCFIRlqL6HYnWuHBQp1GfFoh5CkBlZGe3_9WCk-_DDwgfFrnD_mxJ_x2b18hMUyV2KVtIDiLdebyWaQQ6fbpKpZs-8auVep1zoSgOv-iA

Offline

 

Board footer