I am so frustrated as I just dunno how to getX getY after dragging an object which is already initialised in the World. I have to getX() and get Y() for writing a new method in the editor of the actor, but when I write the codes in the following way, errors just come out.
Editor of the World:
public void initialize()
{
DummyGuy aDummyGuy=new DummyGuy();
GWorld.addOneObject(aDummyGuy,5,9);
}
Editor of DummyGuy:
import.Greenfoot,*;
public void taskOne(){
int x=adummyGuy.getX();
int y=adummyGuy.getY();
........
}
The code just doesn't work><
