Hi, i've implemented my own x and y variables for my acts as doubles, they need to use getX() and getY() when the actor is crated in order to place him in the right spot. I wouldn't think this would be a problem but unfortunately i am getting the "java.lang.IllegalStateException: Actor not in world. An attempt was made to use the actor's location while it is not in the world. Either it has not yet been inserted, or it has been removed." error.
I could put parameters inside the actors constructor but i was wondering if there is a better way.
Here is the code causing trouble:
public Player()
{
GreenfootImage image = getImage();
image.scale(64, 64);
setImage(image);
x = getX();
y = getY();
}

