I making game like supermario and my code have error on List statment and ove.setLocation
@Override public void setLocation(int x, int y)
{
int x2 = getX()-x;//gets where the man is trying to move
int y2 = getY()-y;
//actorX = x;
//actorY = y;
List<Covek> everyone = getWorld().getObjects(Covek.class);
for(int g = 0;g < everyone.size();g++)
{
Actor one = everyone.get(g);
one.setLocation(one.getX()+x2,one.getY()+y2);
}
((Pozadina) getWorld()).setThing(x2, y2);
}

