I have been trying for hours, to figure out how i can make one object follow the other, and this is the closest I've gotten.
public class Arm extends Player
{
public int xx;
public int yy;
/**
* Act - do whatever the Arm wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
setLocation(xx,yy);
}
public void location(int x, int y)
{
xx = x;
yy = y;
}
} public void act()
{
location(getX(), getY());
}

