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

#1 2007-08-03 22:50:47

Yummy
Scratcher
Registered: 2007-08-03
Posts: 1

Is there a way to stop the all the scripts for just one character?

i am working on a game
and in some parts of the game i programmed my characters to hide.
i didn't realize when i hid them they still go. But i still have some characters that need to work so i cant use the stop all button.

WHAT DO I DO?

:)PLEASE POST IF YOU KNOW:)

Offline

 

#2 2007-08-04 00:12:59

toontownmiser
Scratcher
Registered: 2007-06-28
Posts: 18

Re: Is there a way to stop the all the scripts for just one character?

you can use a local variable such as "visible?"
when you need them to hide say:
(hide)
(set "visible?" to 0)

when you need them to show up:
(show)
(set visible to 1)

and in the rest of the scripts:
forever if(visible==1)
{
do whatever
}

At the moment, sadly there is no "stop sprite" button.

Another workaround:
use the same visible hide/show scripts as above.

This would be used if you don't want the sprite to show up again.

repeat until(visible==0)
{
do whatever
}
stop script

Last edited by toontownmiser (2007-08-04 00:14:39)


Algebra I Lesson for Today:
(cat)+(dog)=(fish)
Given: c=1, a=1, t=2  d=1,o=1, g=2 and f=1, i=1, s=2, s=2
True or False?

Offline

 

#3 2008-09-26 12:52:20

Marine43753
Scratcher
Registered: 2008-08-25
Posts: 16

Re: Is there a way to stop the all the scripts for just one character?

put this at the end of script.......[blocks]<stop script>[/blocks]



hope that helps  smile

Offline

 

#4 2008-09-26 17:07:27

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Is there a way to stop the all the scripts for just one character?

Marine43753 wrote:

put this at the end of script.......[blocks]<stop script>[/blocks]



hope that helps  smile

But that only stops one particular script.

No, there is no way to stop all scripts from one sprite. You can stop ONE script, or ALL scripts, but not FIVE scripts, SEVEN, scripts, THREE-HUNDRED FIFTY FOUR scripts, etc.

Offline

 

#5 2008-09-26 20:55:42

erind616
Scratcher
Registered: 2007-10-19
Posts: 51

Re: Is there a way to stop the all the scripts for just one character?

Maybe in the near future (I'm talkin' 'bout version 1.4) They will add a stop sprite to the commands. Until then, though, we have to make do with what we have. In fact, I think I will post a forum to the one for suggestions, and see if they can do it.

Good luck  big_smile


What you lookin' at??? I thought so!!!

Offline

 

#6 2008-09-26 21:06:33

Goldfish01
Scratcher
Registered: 2008-05-08
Posts: 36

Re: Is there a way to stop the all the scripts for just one character?

<when green flag clicked>
<forever if><( <{ visible }> <=> 0 )>
<hide>
<else>
<show>
<end>

this might help

Last edited by Goldfish01 (2008-10-18 05:42:08)


Improvement is dissasembling something and not putting it back together properly.

Offline

 

#7 2008-09-27 10:15:03

terminator355
Scratcher
Registered: 2008-07-31
Posts: 100+

Re: Is there a way to stop the all the scripts for just one character?

they should add a "stop script until" block in 1.4


No new stuff for now guys  wink  join me for some Black Ops on xbox: termhn or for some rock band on PS3: rocket232

Offline

 

#8 2008-09-27 10:20:37

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Is there a way to stop the all the scripts for just one character?

terminator355 wrote:

they should add a "stop script until" block in 1.4

You can do that already by using [wait until].

Offline

 

#9 2008-09-27 11:02:34

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Is there a way to stop the all the scripts for just one character?

coolstuff wrote:

terminator355 wrote:

they should add a "stop script until" block in 1.4

You can do that already by using [wait until].

No you cant,not with that.

You can use broadcasting.

Offline

 

#10 2008-09-27 11:04:58

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Is there a way to stop the all the scripts for just one character?

keroro645 wrote:

coolstuff wrote:

terminator355 wrote:

they should add a "stop script until" block in 1.4

You can do that already by using [wait until].

No you cant,not with that.

You can use broadcasting.

Yes, you can. [wait until] will stop the script until the condition is true.

Offline

 

#11 2008-09-27 11:07:53

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Is there a way to stop the all the scripts for just one character?

coolstuff wrote:

keroro645 wrote:

coolstuff wrote:


You can do that already by using [wait until].

No you cant,not with that.

You can use broadcasting.

Yes, you can. [wait until] will stop the script until the condition is true.

Stop script until not wait until.Stop script until will stop the script until somthing happens.
You're not understanding right.

Offline

 

#12 2008-09-27 11:09:13

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Is there a way to stop the all the scripts for just one character?

keroro645 wrote:

coolstuff wrote:

keroro645 wrote:


No you cant,not with that.

You can use broadcasting.

Yes, you can. [wait until] will stop the script until the condition is true.

Stop script until not wait until.Stop script until will stop the script until somthing happens.
You're not understanding right.

wait until will stop the script! Nothing can happen in the one script until that condition is true.

Offline

 

#13 2008-09-27 11:12:04

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Is there a way to stop the all the scripts for just one character?

Scripts dont work when they're stopped!

Offline

 

#14 2008-09-27 11:14:00

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Is there a way to stop the all the scripts for just one character?

keroro645 wrote:

Scripts dont work when they're stopped!

It won't work when it's being wait until'd!

Offline

 

#15 2008-09-27 11:14:26

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Is there a way to stop the all the scripts for just one character?

coolstuff wrote:

keroro645 wrote:

Scripts dont work when they're stopped!

It won't work when it's being wait until'd!

Yes I Know!

Offline

 

#16 2008-09-27 11:17:30

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Is there a way to stop the all the scripts for just one character?

keroro645 wrote:

coolstuff wrote:

keroro645 wrote:

Scripts dont work when they're stopped!

It won't work when it's being wait until'd!

Yes I Know!

THEN WHAT r YOU ARGUING ABOUT!?

Offline

 

#17 2008-09-27 11:19:06

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Is there a way to stop the all the scripts for just one character?

coolstuff wrote:

keroro645 wrote:

coolstuff wrote:


It won't work when it's being wait until'd!

Yes I Know!

THEN WHAT r YOU ARGUING ABOUT!?

You want to take this outside?!?!
Stop script until is where you stop the script until something happens.

Offline

 

#18 2008-09-27 11:20:14

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Is there a way to stop the all the scripts for just one character?

keroro645 wrote:

coolstuff wrote:

keroro645 wrote:


Yes I Know!

THEN WHAT r YOU ARGUING ABOUT!?

You want to take this outside?!?!
Stop script until is where you stop the script until something happens.

and wait until is where you stop the script until something happens. Believe me! Even try it!

Offline

 

#19 2008-09-30 18:15:33

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: Is there a way to stop the all the scripts for just one character?

Why are you arguing? coolstuff is clearly right.
http://scratch.mit.edu/projects/bhz/279336

Offline

 

#20 2008-10-19 21:09:02

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Is there a way to stop the all the scripts for just one character?

bhz wrote:

Why are you arguing? coolstuff is clearly right.
http://scratch.mit.edu/projects/bhz/279336

As always. (just kidding)

Offline

 

#21 2008-10-19 21:43:32

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Is there a way to stop the all the scripts for just one character?

Why did i say broadcasting?OMG i am an idiot.As always. (i'm serious)

Offline

 

#22 2008-10-20 10:45:05

registeel
Scratcher
Registered: 2008-04-27
Posts: 500+

Re: Is there a way to stop the all the scripts for just one character?

I agree we do need something like that...

Offline

 

Board footer