This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Suggestions
  •  » Make the timer able to count down, and count in minutes

#1 2009-11-23 17:15:25

steppenwulf
Scratcher
Registered: 2009-07-23
Posts: 1000+

Make the timer able to count down, and count in minutes

So I was working on a game today, and used the timer for the first time. I wanted to make it so it counts down from 10 minutes, but it only counts up, and only in seconds. Could you make it able to count down, and count in minutes please?

Last edited by steppenwulf (2009-11-23 17:16:36)


I'm graduating HS this April and going to college in the Fall.

Offline

 

#2 2009-11-23 17:28:16

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Make the timer able to count down, and count in minutes

Just a second, I'll get a script...

Offline

 

#3 2009-11-23 17:33:53

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Make the timer able to count down, and count in minutes

This could be done with a script, but I do agree the timer could be developed more  smile

Perhaps there could be..
-Start Timer
-Pause Timer
-Set Timer mode to "Increase/decrease"
-Hide/show timer

And more  smile


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#4 2009-11-23 17:38:41

cocoanut
Scratcher
Registered: 2007-07-10
Posts: 1000+

Re: Make the timer able to count down, and count in minutes

Variables.....


http://i42.tinypic.com/20gyvif.jpgPlease leave a message at the beep.
Steam: Hellephant

Offline

 

#5 2009-11-23 17:41:18

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Make the timer able to count down, and count in minutes

cocoanut wrote:

Variables.....

It can be done in variable's, but the timer has been sitting there a while with only a few functions. It couldn't help to make it slightly more improved, at the moment it just looks rather useless  hmm


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#6 2009-11-23 17:42:56

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Make the timer able to count down, and count in minutes

I almost have the script ready...

Offline

 

#7 2009-11-23 17:42:56

cocoanut
Scratcher
Registered: 2007-07-10
Posts: 1000+

Re: Make the timer able to count down, and count in minutes

06dknibbs wrote:

cocoanut wrote:

Variables.....

It can be done in variable's, but the timer has been sitting there a while with only a few functions. It couldn't help to make it slightly more improved, at the moment it just looks rather useless  hmm

True, but I don't think there's a need for the time at all. I think we should just get rid of it, since we can use variables.


http://i42.tinypic.com/20gyvif.jpgPlease leave a message at the beep.
Steam: Hellephant

Offline

 

#8 2009-11-23 17:43:58

cocoanut
Scratcher
Registered: 2007-07-10
Posts: 1000+

Re: Make the timer able to count down, and count in minutes

http://img682.imageshack.us/img682/7681/scripts.gif

But here's a script anyway, if you want to use variables.

Much easier than The-Whiz's method below.

GAR SIXTY SECOND RULE.

Last edited by cocoanut (2009-11-23 17:45:41)


http://i42.tinypic.com/20gyvif.jpgPlease leave a message at the beep.
Steam: Hellephant

Offline

 

#9 2009-11-23 17:44:50

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Make the timer able to count down, and count in minutes

It's kind of hard to read, but I think you'll be able to understand it:
http://i653.photobucket.com/albums/uu259/The-Whiz_photos/timercountdown.gif

Counts down with minutes and seconds from 10 minutes.

Much better at counting than cocoanut's method above.

Last edited by The-Whiz (2009-11-23 17:48:10)

Offline

 

#10 2009-11-23 17:49:38

steppenwulf
Scratcher
Registered: 2009-07-23
Posts: 1000+

Re: Make the timer able to count down, and count in minutes

The-Whiz wrote:

It's kind of hard to read, but I think you'll be able to understand it:
http://i653.photobucket.com/albums/uu25 … ntdown.gif

Counts down with minutes and seconds from 10 minutes.

Much better at counting than cocoanut's method above.

Thanks  big_smile


I'm graduating HS this April and going to college in the Fall.

Offline

 

#11 2009-11-23 17:55:25

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Make the timer able to count down, and count in minutes

Here it is in a project, so it is easier to read: http://scratch.mit.edu/projects/The-Whiz-test/772472

Offline

 

#12 2009-11-23 18:00:47

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Make the timer able to count down, and count in minutes

cocoanut wrote:

06dknibbs wrote:

cocoanut wrote:

Variables.....

It can be done in variable's, but the timer has been sitting there a while with only a few functions. It couldn't help to make it slightly more improved, at the moment it just looks rather useless  hmm

True, but I don't think there's a need for the time at all. I think we should just get rid of it, since we can use variables.

It should either be removed or updated  smile

At the moment it's useless seen as it has such a quick work around. But, if it had more added to it, it could make a few scripts smaller and simpler  smile

-Didn't I already post this o.o, well, I can't see my post now..-


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#13 2009-11-23 18:30:49

illusionist
Retired Community Moderator
Registered: 2008-07-02
Posts: 1000+

Re: Make the timer able to count down, and count in minutes

cocoanut wrote:

Variables.....

Variables lag, and for some reason, the timer doesn't.  smile


http://i.imgur.com/8LX1NrV.png

Offline

 

#14 2009-11-23 18:39:05

steppenwulf
Scratcher
Registered: 2009-07-23
Posts: 1000+

Re: Make the timer able to count down, and count in minutes

cocoanut wrote:

06dknibbs wrote:

cocoanut wrote:

Variables.....

It can be done in variable's, but the timer has been sitting there a while with only a few functions. It couldn't help to make it slightly more improved, at the moment it just looks rather useless  hmm

True, but I don't think there's a need for the time at all. I think we should just get rid of it, since we can use variables.

Well, if the Scratch Team updated the timer, it would eliminate having to use variables for a timer. It would also eliminate the lag that comes from variables.


I'm graduating HS this April and going to college in the Fall.

Offline

 

#15 2009-11-23 18:41:01

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Make the timer able to count down, and count in minutes

Theres an easier way...

set timer to (600+(-1 * timer) )

That should generally do it.


http://i.imgur.com/WBkM2QQ.png

Offline

 

#16 2009-11-23 18:44:24

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Make the timer able to count down, and count in minutes

steppenwulf wrote:

cocoanut wrote:

06dknibbs wrote:


It can be done in variable's, but the timer has been sitting there a while with only a few functions. It couldn't help to make it slightly more improved, at the moment it just looks rather useless  hmm

True, but I don't think there's a need for the time at all. I think we should just get rid of it, since we can use variables.

Well, if the Scratch Team updated the timer, it would eliminate having to use variables for a timer. It would also eliminate the lag that comes from variables.

Updating it would be better  smile

There are many big scripts formed around creating a timer which can bump up a projects size, and add lag. A better timer could cut down on both of these problems.


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#17 2009-11-23 18:45:10

steppenwulf
Scratcher
Registered: 2009-07-23
Posts: 1000+

Re: Make the timer able to count down, and count in minutes

06dknibbs wrote:

steppenwulf wrote:

cocoanut wrote:


True, but I don't think there's a need for the time at all. I think we should just get rid of it, since we can use variables.

Well, if the Scratch Team updated the timer, it would eliminate having to use variables for a timer. It would also eliminate the lag that comes from variables.

Updating it would be better  smile

There are many big scripts formed around creating a timer which can bump up a projects size, and add lag. A better timer could cut down on both of these problems.

Right.


I'm graduating HS this April and going to college in the Fall.

Offline

 

#18 2009-11-23 23:32:38

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

Re: Make the timer able to count down, and count in minutes

Something to point out about the timer block is that it works in a funny way; it'll run even when you hit the red stop sign.  hmm

But for your idea, I agree (how many agreements have I made today?!).

Last edited by Chrischb (2009-11-23 23:32:48)


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

 
  • Index
  •  » Suggestions
  •  » Make the timer able to count down, and count in minutes

Board footer