-at xcor ycor
Any command which ends in -at is caller relative. If called by the observer, xcor ycor are relative to where the observer is (i.e. at 0 0). If called by a turtle, xcor ycor are relative to where the turtle is. Example: Observer: count-turtles-at 1 4 returns the number of turtles at 1 4. Turtle: count-turtles-at 1 4 returns the number of turtles that are 1 positive x-coordinate and 4 postive y-coordinates away from the caller turtle.
Related commands:
|