Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx, plauchester@xxxxxxxxx
Subject: Re: MIA, Ask an Expert: react to certain turtles but not others
From: "Daniel Ajoy" <da.ajoy@xxxxxxxxx>
Date: Tue, 24 Jul 2007 13:00:59 -0500
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed;

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: <plauchester@xxxxxxxxx>
> 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



  • Previous by thread: 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.


    © copyright 2001 - 2008