[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LOGO-L> short question



At 7:29 AM +0000 6/25/98, Pete Gerum wrote:
>In Microworlds logo:    If I have a random forward command is there a
>reporter or command that would retain that random forward movement so
>that it would move the turtle backwards the same number as the forward
>random movement?
>How would that line read please?
>fd random 150  - and then how to go back exactly the random number
>chosen ?
>
>Thanks very much for this help.
>
>

I'd do it by writing a procedure:

to back&forth :distance
forward :distance
back :distance
end

Then you'd have a line in a superprocedure or type in the command center
that looks like this:

back&forth random 150


...hope that helps.

-Michael


--------------------------------------------------------
Michael Tempel                    tel: 212 579 8028
Logo Foundation                   fax: 212 579 8013
250 West 85th Street              michaelt@media.mit.edu
New York  NY 10024
http://el.www.media.mit.edu/logo-foundation/


---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org.  Mail
questions about the list administration to logofdn@gsn.org.  To
unsubscribe send    unsubscribe logo-l    to majordomo@gsn.org.



Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home