Discuss Scratch

drp06
Scratcher
11 posts

How do you make a timer?

Hello everyone! I have a question: How do you make a timer? Please give me a script or project. If I find it helpful or fun, I will follow you. Yes everyne, I KNOW there is a timer block, I just don't know how to do it.

Last edited by drp06 (Feb. 25, 2017 22:46:38)

drmcw
Scratcher
1000+ posts

How do you make a timer?

(timer)
is already there for you.
footsocktoe
Scratcher
1000+ posts

How do you make a timer?

drp06 wrote:

Hello everyone! I have a question: How do you make a timer? Please give me a script or project. If I find it helpful or fun, I will follow you.

There is already a timer block, but here is a stopwatch if you want to see more… https://scratch.mit.edu/projects/95606405/
drmcw
Scratcher
1000+ posts

How do you make a timer?

reset timer
... // do something here you want timed
set [Time v] to (timer) // don't really need this unless you need it for later
say (join [That took ] (join (Time) [ seconds.]))
TEAMWFS
Scratcher
100+ posts

How do you make a timer?

There is a timer block
(timer)


But here is a stopwatch
when green flag clicked
forever
set [timer v] to [1]
wait (1) secs
end
ReisIken14
Scratcher
100+ posts

How do you make a timer?

What does the quote button do?
andrew_ocyeah
Scratcher
2 posts

How do you make a timer?

when green flag clicked
play sound [ v]
ReisIken14
Scratcher
100+ posts

How do you make a timer?

Huh. Anyways, to make a timer, you make a time variable, then say,
when green flag clicked
set [ time] to [time wanted here]
forever
change [ time] by (-1)
end

Last edited by ReisIken14 (Feb. 26, 2017 16:54:10)

tycool1
Scratcher
500+ posts

How do you make a timer?

ReisIken14 wrote:

What does the quote button do?

andrew_ocyeah wrote:

when green flag clicked
play sound [ v]
Please do not spam. Please only talk about things relevant to the subject.
tycool1
Scratcher
500+ posts

How do you make a timer?

ReisIken14 wrote:

Huh. Anyways, to make a timer, you make a time variable, then say,
when green flag clicked
set [ time] to [time wanted here]
forever
change [ time] by (-1)
end
You would have to have a wait block or it would go down at the frames per second time causing it be a lot faster.

Last edited by tycool1 (Feb. 26, 2017 16:55:48)

ReisIken14
Scratcher
100+ posts

How do you make a timer?

tycool1 wrote:

ReisIken14 wrote:

What does the quote button do?

andrew_ocyeah wrote:

when green flag clicked
play sound [ v]
Please do not spam. Please only talk about things relevant to the subject.

Please do not insert that message into the discussion. You are spamming the discussion and posting irrelevant things. If I cannot spam, you can't either, and I was just testing out the quote button. Be slow to anger, man.
tycool1
Scratcher
500+ posts

How do you make a timer?

ReisIken14 wrote:

tycool1 wrote:

ReisIken14 wrote:

What does the quote button do?

andrew_ocyeah wrote:

when green flag clicked
play sound [ v]
Please do not spam. Please only talk about things relevant to the subject.

Please do not insert that message into the discussion. You are spamming the discussion and posting irrelevant things. If I cannot spam, you can't either, and I was just testing out the quote button. Be slow to anger, man.
For the first quote, “what does the quote button do?” you should have put it in the questions about scratch forum. Also, I'm just trying to help the person who said the sound block that it's not okay to spam. I'm just trying to help both of you know how the forums are used.
ReisIken14
Scratcher
100+ posts

How do you make a timer?

tycool1 wrote:

ReisIken14 wrote:

tycool1 wrote:

ReisIken14 wrote:

What does the quote button do?

andrew_ocyeah wrote:

when green flag clicked
play sound [ v]
Please do not spam. Please only talk about things relevant to the subject.

Please do not insert that message into the discussion. You are spamming the discussion and posting irrelevant things. If I cannot spam, you can't either, and I was just testing out the quote button. Be slow to anger, man.
For the first quote, “what does the quote button do?” you should have put it in the questions about scratch forum. Also, I'm just trying to help the person who said the sound block that it's not okay to spam. I'm just trying to help both of you know how the forums are used.


Okay, sorry, my bad. By the way, you should add your really good popular project where you dodge the red blocks to my studio! Click HERE to access the studio.
nathanjp
Scratcher
41 posts

How do you make a timer?

I have a better question, how to make a daily timer that runs in the background
milo9899
Scratcher
12 posts

How do you make a timer?

so you know about the
(current [ v])



(current [ v])


that can be set to date and just use some logic with that
ThatOneEeveeGuy777
Scratcher
12 posts

How do you make a timer?

ReisIken14 wrote:

Huh. Anyways, to make a timer, you make a time variable, then say,
when green flag clicked
set [ time] to [time wanted here]
forever
change [ time] by (-1)
end
[/quote]

Don't forget the delay.
If you want it to stop at 0, change the forever block to a repeat until time = 0
-GreenWonder-
Scratcher
100+ posts

How do you make a timer?

nathanjp wrote:

I have a better question, how to make a daily timer that runs in the background

You could use the “current day of the week” block.

—>
(current [day of the week v])

However, this topic is 8 years old. Please don't necropost next time. Instead, please make a new topic.

Powered by DjangoBB