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: Wed, 13 Feb 2002 09:50:09 -0700

Thanks! That should get him going again.

>>> wpetti@xxxx 02/13/02 12:22AM >>>
A turtle cannot draw in a text box. Wish it could.
But I still think that a turtle could constantly check its x
coordinate and if it exceeds a certain number, then it would jump
to a predesignated negative x coordinate and move 20 or 30 pixels
lower in its y coordinate to start a new line of morse code text.

to new_line
if xcor > 270 [setx -270 sety ycor - 40]
end

Without bothering with the morse code shapes, I tested the
new_line procedure above in this sample "type" procedure (with a
button set to "many times" and it works, moving from line to line
as it stamps random shapes:

to type
seth 90
setsh 1 + random 50
stamp
fd 40
wait 1
new_line
end

Wendy

> -----Original Message-----
> From: Gary McCallister [mailto:mccallis@xxxx]=20
> Sent: Tuesday, February 12, 2002 5:03 PM
> To: MWcybercourse@xxxxxxxxxxxxxxx=20
> Subject: RE: Wrapping
>
>
> Thanks for the help. I have a student who is writting
> a program that types out 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
>
>
>
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/=20




------------------------ Yahoo! Groups
Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/vCuuSA/UdiDAA/yigFAA/saFolB/TM=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






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 and morse code font
  • Next by thread: mail list protocol

  • 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