how do i get this progress bar http://www.greenfoot.org/scenarios/4114 to follow an multipull actors.


public class ProgressBar { Actor following; //Other fields public ProgressBar(Actor following) { this.following = following; //Rest of constructor } public void act() { followActor(); //Rest of act() } private void followActor() { if(following != null && following.getWorld() != null) { int x = following.getX(), y = following.getY() - following.getImage().getHeight()/2 - getImage().getHeight()/2; setLocation(x, y); } } //Other methods }