|MWForum Message||[Date Index] [Threads] [Authors] [Attachments] [Subscribe]|
I am using clone "turtle to clone both the bullet and enemy. There are multiple clones of both on the page simultaneously. However, I think I've solved the problem by renaming the clones of the enemies using a different letter than 't'. That way, it can check for whether it says 't' before the number or the other, generic letter.
From: Daniel Ajoy <da.ajoy@xxxxxxxxx>
Sent: Mon Jan 24 22:51:27 PST 2011
To: MicroWorlds Forum <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [MWForum] MIA, Ask an Expert: Reacting to the clone of a certain turtle
Why? How are you cloning the bullet?
> From: Daniel Ajoy
> Sent: Mon Jan 24 20:33:07 PST 2011
> To: MicroWorlds Forum
> Subject: Re: [MWForum] MIA, Ask an Expert: Reacting to the clone of a certain
>> 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).
> try using:
> if not touchedturtle = "cloneName [actions actions]
> as the OnTouching rule.
> where cloneName is the name of the clone turtle.
On Mon, 24 Jan 2011 23:53:30 -0500, Griffin
> But it is impossible to derive the name of the cloned turtle, and furthermore
> which turtle it was cloned from, using programming alone.
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.