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

#1 2011-08-19 04:42:48

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Delete clones on BYOB!!!

I know how to delete clones, I just right click on them and delete them. However, how would they be deleted automatically when either you restart a game or during one? I have tried loads of forums and can't find the answer already published (and the manual isn't the most clear of manuals)


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#2 2011-08-19 05:16:30

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Delete clones on BYOB!!!

BYOB does not support clone deletion, if you want automatically deleted or created clones try using Panther  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#3 2011-08-19 05:41:45

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Delete clones on BYOB!!!

sparks wrote:

BYOB does not support clone deletion, if you want automatically deleted or created clones try using Panther  smile

yikes  really? I thought it did!  sad  Maybe they need a delete block then, to put into the run for...

Offline

 

#4 2011-08-19 05:48:06

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Delete clones on BYOB!!!

LS97 wrote:

sparks wrote:

BYOB does not support clone deletion, if you want automatically deleted or created clones try using Panther  smile

yikes  really? I thought it did!  sad  Maybe they need a delete block then, to put into the run for...

Maybe I have an older version of BYOB, I didn't know they had cloning!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#5 2011-08-19 05:50:27

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Delete clones on BYOB!!!

sparks wrote:

LS97 wrote:

sparks wrote:

BYOB does not support clone deletion, if you want automatically deleted or created clones try using Panther  smile

yikes  really? I thought it did!  sad  Maybe they need a delete block then, to put into the run for...

Maybe I have an older version of BYOB, I didn't know they had cloning!

Of course they do! BYOB3

Offline

 

#6 2011-08-19 05:56:24

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Delete clones on BYOB!!!

3.1 actually... beta

Scroll down the operator category and you'll find a clone reporter.

Last edited by LS97 (2011-08-19 05:57:42)

Offline

 

#7 2011-08-19 06:29:29

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Delete clones on BYOB!!!

UPDATE
Turns out you can delete clones in BYOB!

In the example below, the first sprite creates a clone of itself. Then it makes the second one move 100 pixels, before deleting it.
http://dl.dropbox.com/u/11532575/forums/byobclone.gif

Offline

 

#8 2011-08-20 04:54:04

whizzer
Scratcher
Registered: 2008-05-27
Posts: 500+

Re: Delete clones on BYOB!!!

LS97 wrote:

3.1 actually... beta

Scroll down the operator category and you'll find a clone reporter.

3.1.1 actually... stable.

http://i.imgur.com/tSalt.gif <- Use that or this.


http://i46.tinypic.com/33df6me.png I'm whizzer0 for all things Minecraft.

Offline

 

#9 2011-08-20 05:07:31

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Delete clones on BYOB!!!

whizzer wrote:

LS97 wrote:

3.1 actually... beta

Scroll down the operator category and you'll find a clone reporter.

3.1.1 actually... stable.

http://i.imgur.com/tSalt.gif <- Use that or this.

Meh... I liked the old system better  sad

And anyway what did I say?

Last edited by LS97 (2011-08-20 05:07:46)

Offline

 

#10 2011-08-20 05:15:54

whizzer
Scratcher
Registered: 2008-05-27
Posts: 500+

Re: Delete clones on BYOB!!!

LS97 wrote:

whizzer wrote:

LS97 wrote:

3.1 actually... beta

Scroll down the operator category and you'll find a clone reporter.

3.1.1 actually... stable.

http://i.imgur.com/tSalt.gif <- Use that or this.

Meh... I liked the old system better  sad

And anyway what did I say?

???


http://i46.tinypic.com/33df6me.png I'm whizzer0 for all things Minecraft.

Offline

 

#11 2011-08-31 05:25:00

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

Re: Delete clones on BYOB!!!

I use a block I made:
{|make a clone run (code) with inputs (inputs...)|} where code is an inline input.
|run ((code) of (clone)) with input list (inputs)|

and i make clones using this block with the script:
|add (object [myself]) to [list of clones]|
{some other stuff i want the clone to do}

and then i have another script:
{when green flag clicked}
|((#)) for every item of (all but first of (list of clones))|{
   |delete ()|
end}
|delete (all) of (list of clones)|
{other stuff}

and that leaves only 1 sprite on screen!
(also, when you delete sprites in any other way, make sure you delete it from the list too because otherwise there is a chance all sprites would get deleted!!!)

Last edited by joefarebrother (2011-08-31 05:25:41)


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

 

#12 2011-12-12 17:32:43

VirtualClown
Scratcher
Registered: 2011-08-05
Posts: 55

Re: Delete clones on BYOB!!!

Delete Object Myself. For a when green flag click, If attribute parent=object (Whatever's doing the cloning) Delete object myself.

Offline

 

#13 2012-02-29 20:35:28

Skellyton22
New Scratcher
Registered: 2012-02-29
Posts: 1

Re: Delete clones on BYOB!!!

All you have to do to delete a clone is to make the clone delete its self. And add in an if that makes whatever it is that deletes the clone only work if the parent is the the base object. That way you don't delete the base object.

Offline

 

#14 2012-03-01 21:27:57

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Delete clones on BYOB!!!

[scratchblocks]
when gf clicked
if <not<object myself v> = <object sprite1 v>>
  <delete <object myself v>>
end
[/scratchblocks

Offline

 

#15 2012-03-01 21:30:57

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Delete clones on BYOB!!!

when gf clicked
if <not<object myself v> = <object sprite1 v>>     
  <delete <object myself v >>    
end
oops, sorry, can't edit it either, so new post

Offline

 

Board footer