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

#1 2010-10-23 22:04:56

seafloormap
New Scratcher
Registered: 2010-10-21
Posts: 2

Timer Help

I was wondering if there was a way to make a timer that goes down, and when time ends the stage switches backgrounds. I really need help with this fast please.

Offline

 

#2 2010-10-23 22:15:38

OldWheezerGeezer
Scratcher
Registered: 2010-06-04
Posts: 500+

Re: Timer Help

First of all, I would like to welcome you to Scratch!

You can't control the timer, except for reset. What you can do, however, is make a variable called "time", and then use that as a timer.

It would look something like this:

http://www.willgonline.com/Screen%20shot%202010-10-23%20at%2010.11.17%20PM.png


Which says:

When green flag clicked, set time to 20, and then subtract 1 from it, wait 1 second, then do it again. If time=0, switch background.

You don't have to do 20, you can do whatever number you want. Hope this helps!

Offline

 

#3 2010-10-23 22:57:00

seafloormap
New Scratcher
Registered: 2010-10-21
Posts: 2

Re: Timer Help

Thank you so much!

Offline

 

#4 2010-10-24 14:59:25

GraemeK
Scratcher
Registered: 2010-06-14
Posts: 73

Re: Timer Help

http://scratchr.webs.com/images/cd30cb.gif

Last edited by GraemeK (2010-10-24 15:01:42)


http://internetometer.com/image/13865.png

Offline

 

#5 2010-10-24 18:11:28

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Timer Help

OldWheezerGeezer wrote:

First of all, I would like to welcome you to Scratch!

You can't control the timer, except for reset. What you can do, however, is make a variable called "time", and then use that as a timer.

It would look something like this:

http://www.willgonline.com/Screen%20sho … 7%20PM.png


Which says:

When green flag clicked, set time to 20, and then subtract 1 from it, wait 1 second, then do it again. If time=0, switch background.

You don't have to do 20, you can do whatever number you want. Hope this helps!

That should be an If instead of a Forever if.  smile


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

Board footer