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: <MWcybercourse@xxxxxxxxxxxxxxx>
Subject: RE: Wrapping
From: "Gary McCallister" <mccallis@xxxx>
Date: Tue, 12 Feb 2002 15:03:18 -0700

Thanks for the help. I have a student who is writting a program that typesout 
letters from the key board as Morse Code. The biggest problem so far has been 
the "carriage return" feature of the screen. I am just now wondering, can a 
turtle draw in a text box?

>>> wpetti@xxxx 02/12/02 02:24PM >>>
I have never been aware of a way to disable wrapping in
MicroWorlds, and I do think I would have heard of it by now if it
were possible.

There is one other way you could do it without a border: have
the computer keep an eye out for the x and y coordinates of the
turtle. Assuming screen dimensions of 592 x 322 (the default for
MW Pro), you would divide each number in half to see the limits
of the xcor and ycor before the turtle would start wrapping. So
you could use this procedure:

to disable_wrap
when [or xcor > 295 xcor < -295] [whatever]
when [or ycor > 160 ycor < -160] [whatever]
end

I leave it to you to figure out the "whatever" -- what you would
want the turtle to do when it reaches the boundary.

... I just tested it out, and the turtle kept wrapping anyhow, so
I had to shrink the boundaries a little to give the computer a
chance to divert the turtle at the edges of the project page.
Here is my revision along with my suggestion for "whatever" ...

to disable_wrap
when [or xcor > 290 xcor < -290] [seth 360 - heading]
when [or ycor > 155 ycor < -155] [seth 180 - heading]
end

(You could shrink the boundaries more if that doesn't work for
you. Of course if you have a different project size, adjust the
numbers accordingly.)

By using "when," the computer is constantly checking to see when
the condition may be true. You can include "disable_wrap" as the
first command of your main procedure which activates your turtle.

Wendy

> -----Original Message-----
> From: Gary McCallister [mailto:mccallis@xxxx]=20
> Sent: Tuesday, February 12, 2002 10:26 AM
> To: mwcybercourse@xxxxxxxxxxxxxxx=20
> Subject: Wrapping
>
>
> Is there a way to turn off the wrapping feature
> in MW? I know we could use a border and colorunder,
> but I thought there was a way to disable wrapping also.
>
>
> ------------------------ Yahoo! Groups Sponsor
>
> Send messages to: mailto:MWcybercourse@xxxxxxxxxxxxxxx=20
> To unsubscribe, e-mail:
> MWcybercourse-unsubscribe@xxxxxxxxxxxxxxx=20
>
> MWcybercourse messages are archived at:
> http://groups.yahoo.com/group/MWcybercourse=20
>
>
>
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/=20




Send messages to: mailto:MWcybercourse@xxxxxxxxxxxxxxx=20
To unsubscribe, e-mail: MWcybercourse-unsubscribe@xxxxxxxxxxxxxxx=20

MWcybercourse messages are archived at:
http://groups.yahoo.com/group/MWcybercourse=20




=20

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/=20





  • Previous by thread: RE: Wrapping
  • Next by thread: RE: Wrapping

  • 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