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

#1 2011-08-27 15:40:25

EPICPIKAGUY
Scratcher
Registered: 2011-05-17
Posts: 22

sugestion:stop this script

the stop this script block will atatch to a script and u will b able to stop another one


file:///C:/Documents%20and%20Settings/Ethan/Desktop/798330_sm.gif

Offline

 

#2 2011-08-27 15:48:28

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: sugestion:stop this script

This has been suggested, and I like it.

Offline

 

#3 2011-08-27 16:19:44

oreo37
Scratcher
Registered: 2011-02-28
Posts: 23

Re: sugestion:stop this script

huh?

Offline

 

#4 2011-08-29 09:12:00

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: sugestion:stop this script

EPICPIKAGUY wrote:

the stop this script block will atatch to a script and u will b able to stop another one

There is, at the bottom of the control pallete:
[blocks]
<stop script>
and
<stop all>
[/blocks]


I'm back.
Maybe.

Offline

 

#5 2011-08-29 09:17:19

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: sugestion:stop this script

DigiTechs wrote:

EPICPIKAGUY wrote:

the stop this script block will atatch to a script and u will b able to stop another one

There is, at the bottom of the control pallete:
[blocks]
<stop script>
and
<stop all>
[/blocks]

no what he means is to stop another script instead of this one.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#6 2011-08-29 09:18:35

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: sugestion:stop this script

Oh, i get what u mean.


I'm back.
Maybe.

Offline

 

#7 2011-08-29 16:25:00

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: sugestion:stop this script

You can use a variable.

WhenGreenFlagClicked:
set [variable  v] to 0.
forever if <condition> {
set [variable  v] to 1}

WhenGreenFlagClicked:
wait until <variable = 0>.
forever if <variable = 1> {
stop script}

Also, you would have to name every script.  This is a good idea, but we need to carefully consider how it would be implemented.

Offline

 

#8 2011-08-29 17:29:10

TheBlueRocky
Scratcher
Registered: 2010-07-08
Posts: 500+

Re: sugestion:stop this script

Just have a variable change from 0 to 1, and when the other script senses the change, it stops.

EDIT: Ninja'd.

Last edited by TheBlueRocky (2011-08-29 17:29:33)

Offline

 

Board footer