|MWForum Message||[Date Index] [Threads] [Authors] [Attachments] [Subscribe]|
But it is impossible to derive the name of the cloned turtle, and furthermore which turtle it was cloned from, using programming alone.
From: Daniel Ajoy <da.ajoy@xxxxxxxxx>
Sent: Mon Jan 24 20:33:07 PST 2011
To: MicroWorlds Forum <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [MWForum] MIA, Ask an Expert: Reacting to the clone of a certain turtle
> date: Mon Jan 24 19:58:26 2011
> platform: PC
> version: MicroWorlds Ex
> I want to make it so that the clone of one turtle (bullet) does not register in onTouching when in contact with a clone of the same turtle (bullet), but I do want it to register when in contact with a clone of a different turtle (enemy).
if not touchedturtle "cloneName [actions actions]
as the OnTouching rule.
where cloneName is the name of the clone turtle.
MWForum mailing list
To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.