*MicroWorlds Notes*


Commands .. Abbr. .. Descriptions .. Example

1. Forward .. fd .. moves the turtle .. fd 60

2. Back .. bk .. Moves the turtle .. bk 85.5

3. Right & Left .. rt & lt .. turns the turtle .. rt 90 lt 45

4. setheading .. seth .. changes direction .. seth 90

5. pendown .. pd .. turtle draws .. pd

6. Setpensize .. [none] .. changes pensize .. setpensize 45

7. Setcolor .. setc .. changes turtle color .. Setc 105 or Setc "blue

8. to .. none .. begins/names procedure .. to f

9. end .. none .. ends a procedure .. end

10. ctrl-F .. none .. flips page .. ctrl-F

11. Repeat .. [none] .. Repeat's commands .. repeat 4 [fd 50 rt 90]

12. show position .. show pos .. Shows the turtles position on the screen .. show pos

13. setposition .. setpos .. Moves to the position on the screen .. setpos [ -240 40]

14. glide .. none .. moves one turtle across screen (animation) .. glide 100 5 (The 100 = distance and 5 = speed

15. Wait .. none .. slows down the computer 1 = 1/10 sec. .. wait 10

16. Setshape .. setsh .. Changes shape of turtle instantly .. Setsh 16 (changes to a dog)

17. Freezebg .. none .. locks background colors and stamped objects .. freezebg

18. unfreezebg .. none .. unlock background .. unfreezebg



To dog
pu seth 270
repeat 100 [ setsh 16 fd 1 wait 1 setsh 17 fd 1 wait 1 ]
end

To girlskater
pu seth 90
repeat 100 [ setsh 46 fd 2 wait 1 setsh 47 fd 2 wait 1 setsh 48 fd 2 wait 1]
end


19. t1, t2, t3, .. none .. talks to multiple turtles .. t1, dog t2, cat

20. launch [] .. none .. launches multiple commands as the same time .. launch [t1, dog] launch [t2, cat]

21. random # .. none .. generates a random number .. fd random 100

22. show mousepos .. none .. tells exactly where turtle is! .. show mousepos

To race
repeat 500 [ launch [t1, fd random 20]
launch [ t2, fd random 20]
launch t3, fd random 20]
launch [t4, fd random 20]
launch [t5, fd random 20]]
end

23. SaveHtml .. None .. Saves your project so you can save your projects on the Internet .. savehtml

Optional:
Snap shot .. None .. Takes a picture of the background .. snamp shot
Restore .. None .. Restore the snapshot of a background .. restore

to showmovie
set visible? true movie1
set visible? false
end