Set the perspective to turtle.
Every time turtle moves the observer also moves. Thus, in the 2D View the turtle will stay at the center of the view. In the 3D view it is as if looking through the eyes of the turtle. If the turtle dies, the perspective resets to the default.
See also reset-perspective, watch, follow, subject.
Take me to the full NetLogo Dictionary