Discuss Scratch

wayyyy
Scratcher
500+ posts

Start/Stop Timer Block.

Start/Stop Timer Block.
[stop v] timer ::sensing

[start v] timer ::sensing

Right now, you can't stop the timer, you can only reset it, so I'd like to introduce these new blocks to stop the timer and start it.

It can be used to figure out how much a key was pressed for example.

when green flag clicked
[stop v] timer ::sensing
wait until <key [space v] pressed?>
[start v] timer ::sensing
wait until <not <key [space v] pressed?>>
[stop v] timer ::sensing
say (join (join [You pressed the space bar down for ] (timer)) [ seconds.])

*The timer still starts automatically so you would have to stop it first.

It you would like to see this please Support.
iamunknown2
Scratcher
1000+ posts

Start/Stop Timer Block.

Pretty sure that it's a duplicate of a suggestion here.
wayyyy
Scratcher
500+ posts

Start/Stop Timer Block.

iamunknown2 wrote:

Pretty sure that it's a duplicate of a suggestion here.
Never saw that one before. D:

But it's pretty vague still.

Last edited by wayyyy (July 2, 2015 00:08:13)

Pot-of-Gold
Scratcher
1000+ posts

Start/Stop Timer Block.

support
iamunknown2
Scratcher
1000+ posts

Start/Stop Timer Block.

Pot-of-Gold wrote:

support
There's a workaround…
forever
if <(pause) = [0]>
change [timer v] by [0.01]
wait (0.01) secs
end
end

Last edited by iamunknown2 (July 2, 2015 00:12:45)

wayyyy
Scratcher
500+ posts

Start/Stop Timer Block.

iamunknown2 wrote:

Pot-of-Gold wrote:

support
There's a workaround…
forever
if <(pause) = [0]>
change [timer v] by [0.01]
wait (0.01) secs
end
end
There's a slight delay when using scratch blocks so it's not really good and it's not very useful because it's not doing anything.
Molley24
Scratcher
40 posts

Start/Stop Timer Block.

Support!
purplebook163
Scratcher
500+ posts

Start/Stop Timer Block.

Support!
iamunknown2
Scratcher
1000+ posts

Start/Stop Timer Block.

wayyyy wrote:

iamunknown2 wrote:

Pretty sure that it's a duplicate of a suggestion here.
Never saw that one before. D:

But it's pretty vague still.
But still a duplicate. Start/Stop timer block was the topic as well.
wayyyy
Scratcher
500+ posts

Start/Stop Timer Block.

iamunknown2 wrote:

wayyyy wrote:

iamunknown2 wrote:

Pretty sure that it's a duplicate of a suggestion here.
Never saw that one before. D:

But it's pretty vague still.
But still a duplicate. Start/Stop timer block was the topic as well.
Be quiet, you're starting a flame war.
iamunknown2
Scratcher
1000+ posts

Start/Stop Timer Block.

wayyyy wrote:

iamunknown2 wrote:

wayyyy wrote:

iamunknown2 wrote:

Pretty sure that it's a duplicate of a suggestion here.
Never saw that one before. D:

But it's pretty vague still.
But still a duplicate. Start/Stop timer block was the topic as well.
Be quiet, you're starting a flame war.
BWAHAHAHAHA
wayyyy
Scratcher
500+ posts

Start/Stop Timer Block.

iamunknown2 wrote:

wayyyy wrote:

iamunknown2 wrote:

wayyyy wrote:

iamunknown2 wrote:

Pretty sure that it's a duplicate of a suggestion here.
Never saw that one before. D:

But it's pretty vague still.
But still a duplicate. Start/Stop timer block was the topic as well.
Be quiet, you're starting a flame war.
BWAHAHAHAHA
IronBit_Studios
Scratcher
1000+ posts

Start/Stop Timer Block.

Major support.
The_Scratch_Squad
Scratcher
1000+ posts

Start/Stop Timer Block.

Support.

Not to start a fire, but we really should post in the duplicate version and BUMP it up…
cs2554583
New Scratcher
1 post

Start/Stop Timer Block.

stuff dude
Botcho_Otkho
Scratcher
1000+ posts

Start/Stop Timer Block.

cs2554583 wrote:

stuff dude
Hey there! Welcome to the forums! Please, the next time you post, check if the post adds something to the discussion, which is not in this case. Thanks!
Za-Chary
Scratcher
1000+ posts

Start/Stop Timer Block.

It looks like this is a duplicate topic of this one over here, so I’ll close this thread to keep the conversation all in one place.

Feel free to continue the discussion in the link provided above.

Powered by DjangoBB