[Edu-sig] fmslogo turtle question

Daniel Ajoy da.ajoy at gmail.com
Wed Jun 9 16:16:24 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?




show [some text]
[some text]

show [:some :text]
[:some :text]

show [fd 10]
[fd 10]

show [xcor+30 ycor+20]
[xcor+30 ycor+20]

show list xcor+30 ycor+20
[30 20]

Daniel



More information about the Edu-sig mailing list