Project Folders
Teacher Resources
Student Resources
How Do I?
Site Map
Our Team

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

[Thread Prev] [Thread Next]

To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: touching command using WHO
From: zehava wizman <zehavawi1@xxxxxxxxx>
Date: Tue, 14 Feb 2006 06:31:04 -0800 (PST)

Hello Daniel!
  I understand the code and did it like you suggested, there is couple of 
turtles that touch each other, and I do not get "true in the textbox, Why?
                   thanks, Zehava

Daniel Ajoy <dajoy@xxxxxxxxxxxxxxxxxxxxx> wrote:
  On 12 Feb 2006 at 5:40, zehava wizman wrote:

> hello forum!
> I want to know if there is a way to check if someone is 
> touching someone without mention all the turtles taking 
> place in the game, Maybe something like that
> if touching? who who [make "score :score + 1].Sometimes the 
> main thing is to identify whether an intersection happened, 
> and not so important who are the turtles.
> Maybe the program can identify by its self who are the 
> turtles .
> here attached an example, I start mention the touching 
> command with "t1 within go procedure, but not finished with 
> all possibilities of intersection.
> thanks, Zehava Wizman

Hi Zehava,

to any_touching?
let [turtles get "page1 "turtles]

dolist [i :turtles] [
dolist [j :turtles] [
if not :i = :j [
if touching? :i :j [output "true]

output "false


OpenWorld Learning

 Yahoo! Mail
 Use Photomail to share photos without annoying attachments.

Attachment: question_for_forum_who.mw2
Description: 3570238039-question_for_forum_who.mw2

  • Previous by thread: Re: touching command using WHO
  • Next by thread: Re: touching command using WHO

  • 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