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

#1 2012-10-19 02:46:59

cocelineco
New Scratcher
Registered: 2012-09-16
Posts: 2

[How] Time Pause?

Okay I need to know how to make my timer pause. It's just a <Forever change timer by 1> thing.

I want it so when I receive the level complete page, the timer pauses until I continue.

Offline

 

#2 2012-10-19 11:08:44

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: [How] Time Pause?

Here's what I would use:

when gf clicked 
set [pause v] to (0)
set [timer v] to (0)
forever
 if <(pause) = (0)>
  change [timer v] by (1)
  wait (.98) secs
 end

when I receive [level change v]
set [pause v] to (1)
wait until (ready to continue?)
set [pause v] to (0)
I hope that this helps!

Last edited by ErnieParke (2012-10-19 11:09:54)


http://i46.tinypic.com/35ismmc.png

Offline

 

#3 2012-10-19 21:38:53

cocelineco
New Scratcher
Registered: 2012-09-16
Posts: 2

Re: [How] Time Pause?

ErnieParke wrote:

I hope that this helps!

Awesome! Thanks so much. Just curious though why the .98 instead of just using 1 sec ?

Offline

 

#4 2012-10-19 21:40:28

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: [How] Time Pause?

cocelineco wrote:

ErnieParke wrote:

I hope that this helps!

Awesome! Thanks so much. Just curious though why the .98 instead of just using 1 sec ?

Slight delay.
EDIT: download.

Last edited by Firedrake969 (2012-10-19 21:42:30)


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#5 2012-10-19 21:58:12

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: [How] Time Pause?

cocelineco wrote:

ErnieParke wrote:

I hope that this helps!

Awesome! Thanks so much. Just curious though why the .98 instead of just using 1 sec ?

Because there's a slight delay. Anyway, your welcome!

Last edited by ErnieParke (2012-10-19 22:11:00)


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer