June 9, 2010
2:16 p.m.
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
5932
Age (days ago)
5932
Last active (days ago)
0 comments
1 participants
participants (1)
-
Daniel Ajoy