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

#1 2009-06-17 11:57:13

Shadow-Kun
Scratcher
Registered: 2008-01-21
Posts: 20

Stop all Scripts...on One Sprite

One thing which has always bugged me is that you can only stop individual scripts or all scripts at once.  I think it would be useful if there was a simple button that said something like, "Stop all Scripts of Sprite 1" for example.  This would be useful.  In some games, I like to end with a boss battle.  Disabling scripts from before that boss when you get to that point would make the battle run much more smoothly.


http://img39.imageshack.us/img39/61/mybanner4a3903a0d3a87.jpg

Offline

 

#2 2009-06-17 11:58:12

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Stop all Scripts...on One Sprite

Yes... That is a good idea...

Offline

 

#3 2009-06-17 13:27:22

keikij
Scratcher
Registered: 2009-02-22
Posts: 1000+

Re: Stop all Scripts...on One Sprite

And it would be useful for making things like ScratchOS and WildRE programs


Back from the Dead (And Stuff)

Offline

 

#4 2009-06-17 13:28:12

FantasyTales
Scratcher
Registered: 2008-06-02
Posts: 1000+

Re: Stop all Scripts...on One Sprite

yes, that bugs me alot becaause of all the extra work that i have to do just to get certain sprites to have their scripts stop, in fact i wonder why its been put off so long in the first place


http://ageofthefuture.ismywebsite.com/images/dg_sig_2_small.png
http://images.myadoptables.com/adopted/2340.pnghttp://images.myadoptables.com/adopted/2339.png

Offline

 

#5 2009-07-01 10:50:39

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Stop all Scripts...on One Sprite

I'd like that too, but the boss battle you could repeat until health<0.01 or BOSS health<0.01


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#6 2009-07-01 20:58:27

pinochio
Scratcher
Registered: 2009-03-19
Posts: 1000+

Re: Stop all Scripts...on One Sprite

i agrees


Flat Out G

Offline

 

#7 2009-07-02 04:19:43

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Stop all Scripts...on One Sprite

Yes, I agree.

You just can't achieve the same thing with variables, 'wait until' and 'repeat until' just keep running for example, as long as you don't add the stop variable with an and block0. you have to add your stop variable to all of the scripts and, the script will always run once after you set the stop variable to 1.

JSO


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#8 2009-07-02 11:22:37

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Stop all Scripts...on One Sprite

Agreed. D:


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#9 2009-07-02 14:11:28

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: Stop all Scripts...on One Sprite

You could do
<if><( <{ sprite1 stop }> <=> 2 )>
<stop script>
<end>
between every block, but that would be annoying

Offline

 

#10 2012-03-27 17:51:39

PSuby
New Scratcher
Registered: 2012-03-24
Posts: 1

Re: Stop all Scripts...on One Sprite

I agree!

Offline

 

#11 2012-03-27 19:39:09

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

Re: Stop all Scripts...on One Sprite

PSuby wrote:

I agree!

PSuby, please look at the age of this thread.  Posting on very old threads is called "necroposting" and is generally frowned upon by the community.  Please refrain from future necroposting.   smile

Offline

 

#12 2012-03-28 15:44:55

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

Re: Stop all Scripts...on One Sprite

when gf clicked
set [stop v] to (0)
then when you want to stop,
set [stop v] to (1)
and in the scripts to stop,
do stuff
if <(stop) = (1)>
stop script
end
do more stuff

Last edited by joefarebrother (2012-03-28 15:45:18)


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

 

#13 2012-03-28 18:08:19

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Stop all Scripts...on One Sprite

There are workarounds, as others have mentioned, but it could still be useful.
Someone necroposted >:U


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

Board footer