[Thread Prev] [Thread Next]
|
To: |
Daniel Ajoy <da.ajoy@xxxxxxxxx> |
|
Subject: |
Re: MIA, Ask an Expert: react to certain turtles but not others |
|
From: |
Anton Plauche <da.ajoy@xxxxxxxxx> |
|
Date: |
Tue, 24 Jul 2007 11:12:59 -0700 (PDT) |
|
Delivered-to: |
da.ajoy@xxxxxxxxx |
|
Dkim-signature: |
a=rsa-sha1; c=relaxed/relaxed; |
|
Domainkey-status: |
good (test mode) |
what about if i need it to react to multiple turtles
Daniel Ajoy <da.ajoy@xxxxxxxxx> wrote: On 24 Jul 2007 at 11:37,
askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx wrote:
> This is an automatic message sent from the web form at:
> http://mia.openworldlearning.org/howdoi.htm
>
> from:
> date: Tue Jul 24 11:37:18 2007
> platform: Mac OS10
> version: MicroWorlds Ex
>
> how do i make "t1" react when it comes upon certain turtles but not others?
>
As you are using MW Ex you need to use the OnTouching rule of the
turtle backpack.
in that rule you can call a procedure that uses "touchedturtle"
==================================touchedturtle (tturtle)
Reports the name of the turtle that is touched by the one running
this command. Touchedturtle can only be used inside the OnTouching
field of a turtle's backpack.
==================================
for example:
if touchedturtle = "t2 [lt 90]
Daniel
OpenWorld Learning
---------------------------------
Get the free Yahoo! toolbar and rest assured with the added security of
spyware protection.
Previous by thread:
Re: MIA, Ask an Expert: react to certain turtles but not others
Next by thread:
Re: MIA, Ask an Expert: react to certain turtles but not others
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.
|