Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+10 votes

This is following up from my previous question I want to link a turtles so that multiple turtles can revolve around one (basically 1 turtle in the middle and 8 revolving around the one)

asked in CSC 150 January201920 by (8 points)

5 Answers

+6 votes

Here is the code that the professor demonstrated in class to link the turtle.

to setup
;; note -- this is a 2D example, but TIE should also work in Netlogo 3D

  cro 1 [
    set color blue
    fd 2
  cro 5 [
    fd 1
    set shape "circle"
    create-link-with turtle 0 [ tie hide-link ]
answered by (8 points)

Thank you

+6 votes
ask turtles [create-link-with one-of other turtles]
answered by (8 points)
+6 votes

Here is my example: create-link-from one-of earths [ tie hide-link ]

answered by (2.5k points)
+6 votes

this worked for me to link turtles

create-link-with turtle 0 [ tie hide-link ]
answered by (8 points)
+2 votes

It's also in the s drive if you want it

answered by (2.2k points)