variable-at
xcor ycor
Parameters:
xcor |
Number |
number of steps in the x-direction from the caller |
ycor |
Number |
number of steps in the y-direction from the caller |
Description:
Returns the value of the variable
specified at a distance of xcor in the x direction and ycor in the y direction from the caller
Examples:
size-at 1 1
returns the size of the turtle one patch away in the x direction and y patch away in the y direction
Notes:
variables must first be declared in a turtles-own, breeds-own, patches-own or globals
Related Commands:
setvariable-at
variable
variable-of
variable-towards