Monday, June 8, 2009

How to use MSW Logo

Step 1: Moving the "Turtle"

-Under the commander box type in forward 50 (or another number you want)and press
enter and you'll have a line going straight up.
-If you want you can also write in fd 50, which just makes it less writing for you.
-In order to make it go right then you can write in right 50 or rt 50.
-If you want to reset it then you can type in "cs" under the commander and you'll be able to do it all over again.
-Now, if you want to move your "turtle" left then you can type in left 50 or lt 50.
-If you want to move it back you can write back 50 or bk 50.
-Then once you got the image that you want then you can save it into your workshop.

Step 2: Making a square
-First, you can type in fd 50 which will make a straight line.
-Then you also write rt 50 which will make your "turtle" move to the right.
-After you have to write fd 50 so your "turtle" will move down. But make sure its facing the correct direction.
-Third thing to do is type in rt 50.
-Finally, you type in fd 50 and you will have your square.
-When your putting in your code into your workshop it should be like this,
TO SQUARE
REPEAT 4 [FD 100 RT 90]
END



Step 3: Saving your work
- Click on "edall"
- Then write in "To Square"
- Write the steps you take in order to make your square.
- Then write "end" and save it into your workshop.
- After under the commander box type in, "to square" and your square should come up perfectly.

Step 4: Making a re-sizable shape
-Making a re-sizable shape is basically the same thing of making a regular shape but you just have to write resizesquare under the commander box.
-But you also have to add a size that you want or it wont work.
-For example, the code would be,
TO RESIZESQUARE :SIZE
REPEAT 4 [FD :SIZE RT 90]
END
-You would leave that like that (don't write any numbers in for :size) except for when you are writing in the commander box.