Hi,
You can add something like that in the definition of your agent (you update the value of follow depending on which agent you want to follow
list<point> trajectory <- [];
bool follow <- true;
reflex updateTrajectory {
if follow{
trajectory <- trajectory + location;
}
}
aspect trajectory{
if follow{
draw line(trajectory) color:color;
}
}
And of course do not forget to add this aspect in one of your display
Arnaud