Discuss Scratch

mrsteve
Scratcher
100+ posts

How delete all clones?

Say a kid creates a script which creates clones, then accidentally or on purpose creates 100 clones, but does not put any .delete clone> blocks in his scripts. How, other than selecting one by one, can you delete them all?
Lightnin
Scratcher
1000+ posts

How delete all clones?

mrsteve
Say a kid creates a script which creates clones, then accidentally or on purpose creates 100 clones, but does not put any .delete clone> blocks in his scripts. How, other than selecting one by one, can you delete them all?

Should work to just hit the stop sign - at least that's what I've heard, but I haven't tried it myself.
mrsteve
Scratcher
100+ posts

How delete all clones?

Thanks, and yes, clicking the Stop Sign does delete all clones.
mrsteve
Scratcher
100+ posts

How delete all clones?

Actually I really don't like the “Delete all Clones on Click Stop Sign”

I have created two projects so far One is Epidemic and the other Clone Test (which will probably turn into a lemmings simulation at some point) and in both cases I wanted to “freeze” the action and see the state of my simulation.

Now the problem may be in my head and the models I am used to using. I could probably code up a way to do this without clicking stop (if statements with checks on a run/stop variable).

That said I still feel it would be nice to have a “delete all clones” block. Hmmmm, need to think about this more.
mrsteve
Scratcher
100+ posts

How delete all clones?

Okay I can simply code up a “delete all clones” which fires on a particular Event.
sci_test
Scratcher
20 posts

How delete all clones?

mrsteve
Actually I really don't like the “Delete all Clones on Click Stop Sign”I have created two projects so far One is Epidemic and the other Clone Test (which will probably turn into a lemmings simulation at some point) and in both cases I wanted to “freeze” the action and see the state of my simulation.Now the problem may be in my head and the models I am used to using. I could probably code up a way to do this without clicking stop (if statements with checks on a run/stop variable).That said I still feel it would be nice to have a “delete all clones” block. Hmmmm, need to think about this more.
I agree with this.

EDIT: Cool, this is the 1600th post. That's some great feedback!

Last edited by sci_test (Nov. 6, 2012 04:07:40)

mrsteve
Scratcher
100+ posts

How delete all clones?

Okay so here is a suggestion “Pause/Resume Button” next to the Green Flag and Stop Sign.

I was looking at the project "Day Dream“ (absolutely beautiful) and hit the ”Stop Sign“ half way through and realized I had to go back and rewatch all I already saw (which wasn't so bad).

Anyway, a ”Pause/Resume" may solve my issue while watching daydream and my issue when running a simulation.

Of course does Pause pause everything, including Events? or only currently executing scripts?
I could envision wanting to Pause my currently executing scripts, but still want to be able to:
a) capture a screenshot (various stages of the simulation preserved in my cloud data for later review, which I am not sure I can do within scratch, but would be nice in a future version )
b) data captures to the cloud at various points (of course I could do this other ways, so a non-issue)

Need to think some more …
Thanks for letting me think out loud
BoltBait
Scratcher
1000+ posts

How delete all clones?

If you hit the pause button, would it pause the timer?

Would it pause updating cloud variables?

Would it pause the date and time blocks?
mrsteve
Scratcher
100+ posts

How delete all clones?

he he he, In spite of all I do Time marches on, I would expect the same in Scratch.

I am confident there is a way to do this, they have it in Etoys (of course the execution engine is different and I in no way fully understand the execution models of either system, only what I can guess).

Still given all the developers need to do, I think it best I think about how to deal with the system the way it is and how I can accomplish the results I want within that.
Hardmath123
Scratcher
1000+ posts

How delete all clones?

BoltBait
If you hit the pause button, would it pause the timer?Would it pause updating cloud variables?Would it pause the date and time blocks?
We just copy whatever BYOB does. I would say pause everything.

What does BYOB do, BTW?

EDIT: To delete all clones, add this script in the clonee:

when I receive (delete)
delete this clone

Then broadcast (delete) to delete all clones.

Last edited by Hardmath123 (Nov. 7, 2012 05:47:41)

scimonster
Scratcher
1000+ posts

How delete all clones?

I'm gonna create a new thread for pause functionality.

EDIT: http://alpha.scratch.mit.edu/forums/topic/270/

Last edited by scimonster (Nov. 7, 2012 07:43:09)

StarHunter3000
New Scratcher
1 post

How delete all clones?

do you guys know how to define a block that deletes all clones?
if you want an example of what im doing, check out rainbowurtle zap on scratch( its my first game)
noamkoren
Scratcher
3 posts

How delete all clones?

Can you please advise if delete all clones is a feature that you'll be developing?
noamkoren
Scratcher
3 posts

How delete all clones?

re my previous remark.. @ lightnin .. I am trying to delete all clones between levels in this project … http://scratch.mit.edu/projects/13560935 can you please advise how to?
Thanks!
Noam
hlee42
New Scratcher
1 post

How delete all clones?

me toooooooo PLEASE school assignment
ScratchJahd2011
Scratcher
500+ posts

How delete all clones?

Please don't necrobump topics.

And please ask help in the Help with Scripts forum.

Here's your answer,
Create a broadcast, that when clones receive it. They delete themselves.
SBJ1943
Scratcher
52 posts

How delete all clones?

Yes, Sometimes it is necessary to delete all clones.
e.g. in my project ‘Curves’ I have used 30 clones to make menu structure. Once the menu is used; it has to be deleted to clear the backdrop for drawing curves/ slide show.

It can be done very simple by a broadcast

http://scratch.mit.edu/projects/23019784/#editor

You may see this inside the script for Sprite ‘General’ used for menu bars.
(I am not ale to copy +paste the image from clipboard.)
SBJ1943
Scratcher
52 posts

How delete all clones?

whenIreceivewhenIreceivedeletethisclone
SBJ1943
Scratcher
52 posts

How delete all clones?

whenIreceiveDraw_Curve
deletethisclone
Julianthewiki
Scratcher
100+ posts

How delete all clones?

I might have created this workaround, but:

repeatpickrandom1to300createcloneofmyselfchangeclonesby1whenistartasaclone. . .repeatclonesdeletethisclone

Powered by DjangoBB