[Edu-sig] fmslogo turtle question
C or L Smith
smiles at worksmail.net
Wed Jun 9 10:15:13 CEST 2010
Can anybody give me some help?
I am trying to set the heading towards a point that is relative to the current position.
This isn't working:
setheading towards [xcor+30 ycor+20]
It says,
towards doesn't like [xcor+30 ycor+20] as input
I tried defining two values to use
make "x xcor+30
make "y ycor+20
towards [:x :y]
and even though it know what :x and :y are it gives the same sort of error as before.
It only seems to like a liter pair of numbers within the brackets.
Does anyone know how to get towards to take less literal coordinates?
/c
More information about the Edu-sig
mailing list