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?
Offline
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.
Offline
I don't know... I haven't ever tried it, but that would be better if the block did that.
Offline
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.
Offline
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)
Offline