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

#1 2009-05-17 17:50:58

ScratchX
Scratcher
Registered: 2009-05-05
Posts: 1000+

Stoping scripts block?

Sometimes i want to stop a certain script when so and so broadcasts but that is imposible. I know you can use variables but that will mess up my game or animation.
So each script could have like a number like sprites! like when this happens stop script so and so.

I would love to se this is 1.4 version of scratch


Happy New Year!
http://i45.tinypic.com/1nyasi.pnghttp://i50.tinypic.com/219pez8.pnghttp://i49.tinypic.com/e5s4zr.pnghttp://i48.tinypic.com/23l18hf.jpghttp://i49.tinypic.com/66zymu.png

Offline

 

#2 2009-05-17 18:02:11

big-bang
Scratcher
Registered: 2008-02-21
Posts: 1000+

Re: Stoping scripts block?

You can use
[blocks]<broadcast[ [/blocks]
and
[blocks]<stop script>[/blocks]
for that purpose. I don't use them myself but hopefully you can use these coherently.


http://i47.tinypic.com/6edrbm.jpghttp://i45.tinypic.com/dw9hmw.jpghttp://i50.tinypic.com/f28tvn.jpghttp://i45.tinypic.com/ruwaop.jpg

Offline

 

#3 2009-05-17 18:05:50

ScratchX
Scratcher
Registered: 2009-05-05
Posts: 1000+

Re: Stoping scripts block?

no i want to stop certain scripts because pretend if stop script is broadcasted and how can you make another script stop? The when i rcieve block makes a WHOLE NEW script so yeah


Happy New Year!
http://i45.tinypic.com/1nyasi.pnghttp://i50.tinypic.com/219pez8.pnghttp://i49.tinypic.com/e5s4zr.pnghttp://i48.tinypic.com/23l18hf.jpghttp://i49.tinypic.com/66zymu.png

Offline

 

#4 2009-05-17 18:17:52

fruit
Scratcher
Registered: 2009-04-24
Posts: 1000+

Re: Stoping scripts block?

<when I receive[ message
<stop script>


@savi3000 | hcsmp.com

Offline

 

#5 2009-05-17 18:23:48

ScratchX
Scratcher
Registered: 2009-05-05
Posts: 1000+

Re: Stoping scripts block?

noooo you dont understand i mean like if it is a a part in the animation and you dont want the person to move right? like if i recieve animation then stop script movement


Happy New Year!
http://i45.tinypic.com/1nyasi.pnghttp://i50.tinypic.com/219pez8.pnghttp://i49.tinypic.com/e5s4zr.pnghttp://i48.tinypic.com/23l18hf.jpghttp://i49.tinypic.com/66zymu.png

Offline

 

#6 2009-05-17 19:30:23

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

Re: Stoping scripts block?

big-bang/fruit's method won't work. As ScratchX said, the [Stop Script] block will only stop it's own script, the [When I receive [---]] one.

You should use:

[blocks]<forever if>
<end>
or...
<repeat until>
<end>[/blocks]

And use a variable.

Last edited by technoguyx (2009-05-17 19:31:02)


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

Offline

 

#7 2009-05-17 21:44:26

big-bang
Scratcher
Registered: 2008-02-21
Posts: 1000+

Re: Stoping scripts block?

technoguyx wrote:

big-bang/fruit's method won't work. As ScratchX said, the [Stop Script] block will only stop it's own script, the [When I receive [---]] one.

You should use:

[blocks]<forever if>
<end>
or...
<repeat until>
<end>[/blocks]

And use a variable.

Sorry, I didn't understand the criteria. It's always a good thing to fully explain your problem.


http://i47.tinypic.com/6edrbm.jpghttp://i45.tinypic.com/dw9hmw.jpghttp://i50.tinypic.com/f28tvn.jpghttp://i45.tinypic.com/ruwaop.jpg

Offline

 

#8 2009-05-18 19:54:26

ScratchX
Scratcher
Registered: 2009-05-05
Posts: 1000+

Re: Stoping scripts block?

technoguyx wrote:

big-bang/fruit's method won't work. As ScratchX said, the [Stop Script] block will only stop it's own script, the [When I receive [---]] one.

You should use:

[blocks]<forever if>
<end>
or...
<repeat until>
<end>[/blocks]

And use a variable.

that wont work becuase of the variable


Happy New Year!
http://i45.tinypic.com/1nyasi.pnghttp://i50.tinypic.com/219pez8.pnghttp://i49.tinypic.com/e5s4zr.pnghttp://i48.tinypic.com/23l18hf.jpghttp://i49.tinypic.com/66zymu.png

Offline

 

Board footer