[MWForum]How to slow down a turtle/car travelling around a
road network
Tony Wilson
mwforum@lists.mathcats.com
Thu, 02 Oct 2003 11:18:41 +1000
Hi Graham,
I have asked the same question myself and unfortunately the speed of computer processes these days has left the glide command too fast.
You may have to try someting like
t1, towards "t2
repeat 20 [fd 20 wait 1] (you probably already knew this bit)
and then the 'when' and 'touching' commands to stop the turtle (car)when it hits t2. I don't have microworlds at home and cant try it out.
I have an example of the 'when' and 'touching' commnads being used at school and will send you a copy when I get back to school next week.
Good luck
Tony
<GrahamWilliams@caulfieldgs.vic.edu.au> on Thu, 2 Oct 2003 10:00:55 +1000 wrote:
> I'm trying to help some students create a project as part of their maths course. They have to import pages of maps from a local street directory and then use a turtle [dressed as a car] to show the route they travel from their house to our school. The idea is to place turtles [ which will be hidden] all along the roads which they use to come to school. The car- turtle will then 'drive' from hidden turtle to hidden turtle as it travels around the road network. I'm using a procedure with towards and glide - such as the following:
> t1, towards "t2
>
> glide distance "t2 1
>
> towards "t3
>
> glide distance "t3 1
>
> towards "t4
>
> The only problem is that the car doesn't glide - it hurtles around the network at a rate which breaks the speed limit!!!! Can anyone suggest a way of making the car-turtle travel SLOWLY around the road network as it 'drives' from hidden turtle to hidden turtle? I've attached my practice project so you can get some idea of what I'm trying to do. Many thanks Graham Williams Melbourne Australia
>
---
Tony Wilson
Computer Coordinator
Holy Eucharist School
St Albans