|
Method 1: Use right or left. See Squares 1.
Method 2: Use setheading. See Bouncing Off Walls 1.
to go
t1, forever [seth set-head
fd 1 / 20]
end
| | Can you draw a little picture as you control the turtle's heading with the slider?
|
|
|
Method 3: Use towards. See Ant Hill 3.
to aim
forever [t1, towards "t2]
forever [t2, setx x-coord
sety y-coord]
end
| | Press aim, then use the sliders to move the pink turtle as the black turtle continually points toward it.
|
|
|
|