setxcor-of (setx-of)
who-number x-coordinate
Parameters:
who-number |
Integer |
The who id of a turtle |
x-coordinate |
Number |
A coordinate on the x-axis |
Description:
Sets the x-coordinate of the turtle with ID who-number to x-coordinate.
Examples:
setxcor-of 2 5
sets the x-coordinate of turtle 2 to 5.
Related Commands:
setxcor
setxcor-at
setxcor-towards
setxy-of
setycor-of
xcor-of