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

#1 2011-10-02 16:56:13

Zparx
Scratcher
Registered: 2011-03-23
Posts: 500+

Help with BYOB!!!!

I'm trying to make it to where when a sprite is clicked, it clones another sprite by broadcasting something. I have a somewhat working script, and the reason I say somewhat is because when one of the sprites is cloned, it copies the script as well causing more clones (because they're all receiving the same broadcast). Is their any way to clone JUST a sprite with a clean script area?


http://images3.wikia.nocookie.net/__cb20101119183412/halo/images/4/43/Hero2.png
^ My rank on Halo: Reach :3

Offline

 

#2 2011-10-02 17:00:25

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: Help with BYOB!!!!

Zparx wrote:

I'm trying to make it to where when a sprite is clicked, it clones another sprite by broadcasting something. I have a somewhat working script, and the reason I say somewhat is because when one of the sprites is cloned, it copies the script as well causing more clones (because they're all receiving the same broadcast). Is their any way to clone JUST a sprite with a clean script area?

well, you could just the stamp sprite block in the pen category.


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#3 2011-10-02 17:03:11

Zparx
Scratcher
Registered: 2011-03-23
Posts: 500+

Re: Help with BYOB!!!!

wrote:

well, you could just the stamp sprite block in the pen category.

I know but I want the cloned sprite to be a use-able one. Sort of like creating a new folder on your desktop.


http://images3.wikia.nocookie.net/__cb20101119183412/halo/images/4/43/Hero2.png
^ My rank on Halo: Reach :3

Offline

 

#4 2011-10-02 17:12:02

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Help with BYOB!!!!

Let's try this in the Advanced Topics forum.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#5 2011-10-02 17:17:16

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Help with BYOB!!!!

I don't know... I haven't ever tried it, but that would be better if the block did that.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#6 2011-10-02 17:30:32

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Help with BYOB!!!!

you'd have to make the sprite check if it is a clone (which I think you can do), and if it is, then don't do the script.


http://i.imgur.com/zeIZW.png

Offline

 

#7 2011-10-03 06:19:10

roijac_test
Scratcher
Registered: 2011-08-31
Posts: 49

Re: Help with BYOB!!!!

use [run ((clone) of (mother)], it will execute the clone script from the mother sprite, without all the broadcasting mess. (this block)

EDIT: you have to put the (() of ()) block in the grey border

Last edited by roijac_test (2011-10-03 06:20:56)


http://gigabyte.50webs.com/funnyerrormessages/work013.jpg

Offline

 

Board footer