I have several different actors of the same class. What I want is when I click one of the actors, it will bring it to the front, or above all the other actors. I couldn't find a way since setPaintOrder is only for classes. Any suggestions?
public void act() {
if (Greenfoot.mouseClicked(this)) {
World world = getWorld();
int x = getX();
int y = getY();
world.removeObject(this);
world.addObject(this, x, y);
}
}