Re: RE : Etoys - create duplicate (not sibling) from a script?
Hi Mark --
We should have done this better.
Here is how I handle things that are "like this"
this may or may not work for your case.
If you build a bunch of components on a Playfield
it is smart enough to act as a little name-space,
so when it is copied all the links between the
components will be preserved in the new composite
object. (Again, we should do this better.)
So e.g. if you have an object that is controlled
by a joystick morph, you can put both of these in
a Playfield, copy the Playfield, and the new
object and the new joystick will be linked.
Cheers,
Alan
At 02:04 AM 1/31/2008, Scott Wallace wrote:
>Hi, Mark,
>
>You're right that there's no direct programatic way using tiles alone
>to obtain a proper "duplicate" (as opposed to a "sibling,") except (as
>Pierre-André suggests) by using "do menu item - duplicate," which,
>unsatisfactorily, leaves the clone in the "hand" rather than allowing
>you programatically to place it where you wish.
(Continue reading)