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
Subject: Re: if t1's shape = 1 [thendothis]
From: "Daniel Ajoy" <da.ajoy@xxxxxxxxx>
Date: Fri, 13 Jun 2008 12:05:17 -0500
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;

On Fri, 13 Jun 2008 11:02:11 -0500, Henry Wilson <henryhwilson@xxxxxxxxx> 
wrote:

> How would I use a turtle's shape in a procedure?
>
> For example,
>
> I need to use this procedure
>
> if t1's shape = 1 [thendothis]
>
> how would I do this?
>
> thx.
>
> henry

if 1 = ask "t1 "shape [thendothis]

but, if you want to use shape numbers, make sure that the turtle shape doesn't 
have a name, because "shape" reports the name of the shape if the shape has a 
name. If it doesn't, then it reports a number.

Daniel
OpenWorld Learning

PD. try to avoid syntactic sugar like:   's



  • Previous by thread: [no subject]
  • Next by thread: RE:

  • 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