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

#1 2011-02-25 19:23:34

kingofdallamas
Scratcher
Registered: 2010-03-07
Posts: 500+

Stop Sprite's Script

I'm sorry if this suggestion has been mentioned already, but we should really need these blocks if wanting to stop all the scripting in the sprite without stopping the other sprites' scripts.  smile  This will be helpful!


http://i853.photobucket.com/albums/ab99/Gilgamesh1192/Ninja%20Saga/ElementalJutsus2.gifhttp://i27.photobucket.com/albums/c192/BoomKaTish/GIF/thgfhgfhfhgf.gif
ハロー友だち!

Offline

 

#2 2011-02-25 19:49:24

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Stop Sprite's Script

Just use the Stop Script block.  smile

http://wiki.scratch.mit.edu/images/Stop_Script.png


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#3 2011-02-25 19:52:06

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Stop Sprite's Script

I think kingofdallamas means to stop another script that's not that one.

You could use variable triggers though.

<if><( <{ v }> <=> 1 )>
<stop script>
<end>

Offline

 

#4 2011-02-25 22:15:46

kingofdallamas
Scratcher
Registered: 2010-03-07
Posts: 500+

Re: Stop Sprite's Script

No, I meant a script that stops all the scripts in the sprite.


http://i853.photobucket.com/albums/ab99/Gilgamesh1192/Ninja%20Saga/ElementalJutsus2.gifhttp://i27.photobucket.com/albums/c192/BoomKaTish/GIF/thgfhgfhfhgf.gif
ハロー友だち!

Offline

 

#5 2011-02-25 22:53:48

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Stop Sprite's Script

Hmmm... while I don't think this block is necessary, I've seen many suggestions for it... maybe it has some potential  big_smile

What I do to stop multiple scripts at once: I have the scripts activated with a broadcast, and at the very top of each script, there's a checker for if a variable equals 1 - if it does, then the script activates a Stop Script and stops. When I need to stop the scripts, I simply set the variable to 1 and broadcast their broadcast again.  big_smile


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#6 2011-02-26 00:04:59

kingofdallamas
Scratcher
Registered: 2010-03-07
Posts: 500+

Re: Stop Sprite's Script

Okay then!


http://i853.photobucket.com/albums/ab99/Gilgamesh1192/Ninja%20Saga/ElementalJutsus2.gifhttp://i27.photobucket.com/albums/c192/BoomKaTish/GIF/thgfhgfhfhgf.gif
ハロー友だち!

Offline

 

Board footer