Just as in the title, I wish to move everything but the Player, so that it stays centered- just like 2D Zelda or Pokémon.
I tried using the getObjectsInRange() method for this, but can't manage to move each of the returned objects.
It says that it cannot find the methods getX(), getY() and setLocation(), which is understandable because java.lang.Object does not have those methods.
However, if I try to change the type of o to something other than "Object" (e.g. "Actor o : getObjectsInRange(640, null)), the problem is that getObjectsInRange() returns a list of type Object.
for(Object o : getObjectsInRange(640, null)) { o.setLocation(o.getX(), o.getY() - 1); }