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

#1 2007-11-03 10:06:06

Kingoflego
Scratcher
Registered: 2007-07-15
Posts: 78

"wait until further notice"

Here's my idea for a block:

[blocks]<wait until> further notice[/blocks]

It would just wait for anything to happen. It would help me a lot.


What if this were not a hypothetical question?
My featured games: Geometry Land. (Hopefully more soon!)

Offline

 

#2 2007-11-03 10:15:42

Kingoflego
Scratcher
Registered: 2007-07-15
Posts: 78

Re: "wait until further notice"

[blocks] pause <stop script>[/blocks]

another idea


What if this were not a hypothetical question?
My featured games: Geometry Land. (Hopefully more soon!)

Offline

 

#3 2007-11-03 10:16:45

Kingoflego
Scratcher
Registered: 2007-07-15
Posts: 78

Re: "wait until further notice"

what i meant was "pause script"


What if this were not a hypothetical question?
My featured games: Geometry Land. (Hopefully more soon!)

Offline

 

#4 2007-11-03 21:00:04

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: "wait until further notice"

When do "pause" and "wait until further notice" continue?

Do they do the same as "wait until <mouse down>"?

What event (or set of events) are they waiting for?

Offline

 

#5 2007-12-19 10:30:15

tmacd
Scratcher
Registered: 2007-09-24
Posts: 4

Re: "wait until further notice"

kevin_karplus wrote:

When do "pause" and "wait until further notice" continue?

Do they do the same as "wait until <mouse down>"?

What event (or set of events) are they waiting for?

I need to be able to "pause script" at any time and then be able to resume from wherever I paused. When I "stop script", starting again takes me back to the beginning of the script.

Maybe I could make some clickable buttons, then by making my one long script into several shorter ones,  "beginning" after a pause wouldn't necessarily take me all the way back but to alternative "start" points along the way.

What other ways could I resume from where I left off? For example, would there be some kind of "sensing" control that could record where the "pause event" happened...?

(I'm working on a graph of # of passengers over the course of a day - I'll post it in case it helps explain my question)

Thanks!

Tom

Offline

 

#6 2007-12-19 12:03:04

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: "wait until further notice"

Ah, I think I see what you want.

You can fake it with a variable:
     set I_am_paused to 1
     wait until I_am_paused < 1

continue with
     set I_am_paused to 0

You'll need one variable for each different pause condition.

Offline

 

Board footer