[MWForum]MIA, Ask an Expert Question
Jeff Knope
mwforum@lists.mathcats.com
Tue, 30 Sep 2003 08:21:52 -0700
This is a multi-part message in MIME format.
------=_NextPart_000_0004_01C3872B.E73835B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Ann,
There are two basically different ways to tell a turtle where to go. =
One way uses the "relative" commands: left, right, forward, and back. =
All of these are "relative" to the turtle's location or heading just =
before the command is given. The other way uses the "absolute" =
commands: home and setpos. They send the turtle to a new location not =
at all based on where the turtle is before the command is given. There =
are two commands that are "half-and-half": setx and sety change the =
turtle's location based partly on where it is, and partly on the =
coordinate value given.
These terms, "relative" and "absolute," are just my personal names for =
this difference. There may be some other established vocabulary for =
discussing this that I don't know about. =20
Now, about your questions:
1. You may tell a turtle to return to home, which is [0 0] in the center =
of the graphics screen, or to any other setpos [x y] location. You can =
tell it to linger at its last location with a wait n, or tell it to =
glide n smoothly to its original starting point.
2. Using the commands discussed above, you may "drive" the turtle from =
anywhere to anywhere, along whatever serpentine or "swimming" course you =
like.
3, Whether a turtle (and its shape) is "in front" of another is one of =
its state properties. You may select it by right-clicking on the turtle =
and left-clicking "In Front." There are other ways too. You can find =
them in the Help program. =20
I encourage you to explore the Help program. Kinda' like a turtle, the =
Help program has different states, or "ways of being." Which state is =
best to use changes with the kind of Help you need. It takes a little =
curiosity and practice to get a handle on it.
I hope I've been helpful,
-Jeff
----- Original Message -----=20
From: Ask an Expert - Question=20
To: mwforum@lists.mathcats.com=20
Sent: Tuesday, September 30, 2003 6:11 AM
Subject: [MWForum]MIA, Ask an Expert Question
This is an automatic message sent from the web form at:
http://mia.openworldlearning.org/howdoi.htm
from: ann_stirling81@hotmail.com
date: Mon, 29 Sep 2003 23:51:40 -0600
1. How can I make my turtle do what i have program and then return =
back to the place it started its
movement for the next child to have a turn?
How do I make a turtle return to the place it started from after It =
has finished the compand I set for it to do?
2. How can I make a turtle swim up and down the page in water in an =
"s" Shape?
3. How do I make a turle move behind other turtles or drawn objects =
like tree or water?
Thank you for you help
_______________________________________________ MWForum mailing list =
MWForum@lists.mathcats.com =
http://lists.mathcats.com/mailman/listinfo/mwforum Attachments archived =
at: http://www.mathcats.com/mwforum/attachments.html To unsubscribe or =
for administrative questions contact =
mailto:mwforum-admin@lists.mathcats.com
------=_NextPart_000_0004_01C3872B.E73835B0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<?xml version=3D"1.0" ?><HTML><HEAD><TITLE></TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1226" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Ann,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>There are two basically different ways =
to tell a=20
turtle where to go. One way uses the "relative" commands:=20
<STRONG>left</STRONG>, <STRONG>right</STRONG>, <STRONG>forward</STRONG>, =
and=20
<STRONG>back</STRONG>. All of these are "relative" to the turtle's =
location or heading just before the command is given. The =
other way=20
uses the "absolute" commands: <STRONG>home</STRONG>=20
and <STRONG>setpos</STRONG>. They send the turtle to a new =
location=20
not at all based on where the turtle is before the command is =
given. There=20
are two commands that are "half-and-half": <STRONG>setx</STRONG> and=20
<STRONG>sety </STRONG>change the turtle's location based partly on where =
it is,=20
and partly on the coordinate value given.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>These terms, "relative" =
and "absolute," are=20
just my personal names for this difference. There may be some =
other=20
established vocabulary for discussing this that I don't know =
about. =20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Now, about your questions:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>1. You may tell a turtle =
to return to=20
<STRONG>home, </STRONG>which is [0 0] in the center of the graphics =
screen, or=20
to any other <STRONG>setpos [x y]</STRONG> location. =20
You can tell it to linger at its last location with a =
<STRONG>wait=20
<EM>n,</EM></STRONG> or tell it to <STRONG>glide <EM>n=20
</EM></STRONG>smoothly to its original starting point.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>2. Using the commands discussed =
above, you=20
may "drive" the turtle<STRONG><EM> </EM></STRONG>from anywhere to =
anywhere,=20
along whatever serpentine or "swimming" course you like.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>3, Whether a turtle (and its=20
<STRONG>shape</STRONG>) is "in front" of another is one of=20
its <EM>state </EM>properties. You may select it by =
right-clicking on=20
the turtle and left-clicking "In Front." There are other =
ways=20
too. You can find them in the Help program. =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I encourage you to explore the Help =
program. =20
Kinda' like a turtle, the Help program has different =
<EM>states,=20
</EM>or "ways of being." Which state is best to use changes =
with the=20
kind of Help you need. It takes a little curiosity =
and practice to=20
get a handle on it.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I hope I've been helpful,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-Jeff</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Daskanexpert@openworldlearning.org=20
href=3D"mailto:askanexpert@openworldlearning.org">Ask an Expert - =
Question</A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dmwforum@lists.mathcats.com=20
=
href=3D"mailto:mwforum@lists.mathcats.com">mwforum@lists.mathcats.com</A>=
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, September 30, =
2003 6:11=20
AM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [MWForum]MIA, Ask an =
Expert=20
Question</DIV>
<DIV><BR></DIV>
<DIV align=3Dleft><FONT face=3D"Andale Mono"><SPAN style=3D"FONT-SIZE: =
10pt">This is=20
an automatic message sent from the web form at:</SPAN></FONT></DIV>
<DIV align=3Dleft><FONT face=3D"Andale Mono"><SPAN style=3D"FONT-SIZE: =
10pt"><A=20
=
href=3D"http://mia.openworldlearning.org/howdoi.htm">http://mia.openworld=
learning.org/howdoi.htm</A></SPAN></FONT></DIV>
<DIV align=3Dleft><BR></DIV>
<DIV align=3Dleft><FONT face=3D"Andale Mono"><SPAN style=3D"FONT-SIZE: =
10pt">from:=20
<A=20
=
href=3D"mailto:ann_stirling81@hotmail.com">ann_stirling81@hotmail.com</A>=
</SPAN></FONT></DIV>
<DIV align=3Dleft><FONT face=3D"Andale Mono"><SPAN style=3D"FONT-SIZE: =
10pt">date:=20
Mon, 29 Sep 2003 23:51:40 -0600</SPAN></FONT></DIV>
<DIV align=3Dleft><BR></DIV>
<DIV align=3Dleft><FONT face=3D"Andale Mono" size=3D1><SPAN=20
style=3D"FONT-SIZE: 9pt">1. How can I make my turtle do what i have =
program and=20
then return back to the place it started its</SPAN></FONT></DIV>
<DIV align=3Dleft><FONT face=3D"Andale Mono" size=3D1><SPAN=20
style=3D"FONT-SIZE: 9pt">movement for the next child to have a=20
turn?</SPAN></FONT></DIV>
<DIV align=3Dleft><BR></DIV>
<DIV align=3Dleft><FONT face=3D"Andale Mono"><SPAN style=3D"FONT-SIZE: =
10pt">How do=20
I make a turtle return to the place it started from after It has =
finished the=20
compand I set for it to do?</SPAN></FONT></DIV>
<DIV align=3Dleft><BR></DIV>
<DIV align=3Dleft><FONT face=3D"Andale Mono"><SPAN style=3D"FONT-SIZE: =
10pt">2. How=20
can I make a turtle swim up and down the page in water in an "s"=20
Shape?</SPAN></FONT></DIV>
<DIV align=3Dleft><BR></DIV>
<DIV align=3Dleft><FONT face=3D"Andale Mono"><SPAN style=3D"FONT-SIZE: =
10pt">3. How=20
do I make a turle move behind other turtles or drawn objects like tree =
or=20
water?</SPAN></FONT></DIV>
<DIV align=3Dleft><FONT face=3D"Andale Mono"><SPAN style=3D"FONT-SIZE: =
10pt">Thank=20
you for you help</SPAN></FONT></DIV>
<DIV =
align=3Dleft></DIV>_______________________________________________ =
MWForum=20
mailing list MWForum@lists.mathcats.com=20
http://lists.mathcats.com/mailman/listinfo/mwforum Attachments =
archived at:=20
http://www.mathcats.com/mwforum/attachments.html To unsubscribe or for =
administrative questions contact =
mailto:mwforum-admin@lists.mathcats.com=20
</BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0004_01C3872B.E73835B0--