Discuss Scratch
- Discussion Forums
- » Suggestions
- » More Clone Blocks
- SmellyNinja
-
Scratcher
4 posts
More Clone Blocks
I don't know if anyone has noticed this, but when I clone a sprite, all its existing clone get cloned too. For example, if I cloned a sprite five times, I would end up with 16 copies of the same sprite, including the original.
So I thought maybe adding a new block called (clone original) or something like that, in addition to (clone this sprite). But anyone has figured out a way to get around this problem, please let me know. Thanks! 
So I thought maybe adding a new block called (clone original) or something like that, in addition to (clone this sprite). But anyone has figured out a way to get around this problem, please let me know. Thanks! 
Last edited by SmellyNinja (March 13, 2013 15:44:54)
- BoltBait
-
Scratcher
1000+ posts
More Clone Blocks
That doesn't happen to me. Maybe there is a problem in your scripts.
- SmellyNinja
-
Scratcher
4 posts
More Clone Blocks
I think the problem is that the clones follow the same instructions as the original. Do you have any ideas on how to bypass this problem? http://beta.scratch.mit.edu/projects/10077545
- ViggyMish
-
Scratcher
14 posts
More Clone Blocks
I NEED BLOCKS LIKE THESE BUT ORANGE
when I start as a clone with id ()::hat block
when ( v) starts as a clone::hat block
when ( v) starts as a clone with id ()::hat block
create clone of ( v) with id ()
a clone of ( v) exists?:: boolean block
a clone of ( v) exists? with id ():: boolean block
clone count::reporter block
delete all clones::cap block
delete all clones with id ()::cap block
delete all clones of ( v)::cap block
delete all clones of ( v) with id ()::cap block
[ v] of clone of ( v) with id ()::reporter block
[ v] of main sprite of ( v)::reporter block
distance to clone of ( v) with id ()::reporter block
distance to main sprite of ( v)::reporter block
Last edited by ViggyMish (Yesterday 16:37:46)
- BW_CA_24
-
Scratcher
47 posts
More Clone Blocks
I NEED BLOCKS LIKE THESE BUT ORANGEI'm unsure if this helps, but you can read data from the original sprite using the following:when I start as a clone with id ()::hat blockwhen ( v) starts as a clone::hat blockwhen ( v) starts as a clone with id ()::hat blockcreate clone of ( v) with id ()a clone of ( v) exists?:: boolean blocka clone of ( v) exists? with id ():: boolean blockclone count::reporter blockdelete all clones::cap blockdelete all clones with id ()::cap blockdelete all clones of ( v)::cap blockdelete all clones of ( v) with id ()::cap block[ v] of clone of ( v) with id ()::reporter block[ v] of main sprite of ( v)::reporter blockdistance to clone of ( v) with id ()::reporter blockdistance to main sprite of ( v)::reporter block
([\(Variable, x pos, y pos, costume #, or etc)\ v] of (join (Parent Sprite Name) []))
Last edited by BW_CA_24 (Yesterday 19:49:13)
- Discussion Forums
- » Suggestions
-
» More Clone Blocks