I'm making a game for school and I'm not sure how to get the X and the Y coords of my player. So I looked online and I saw this most of the time or a variation of this, but the "Actor Wombat = Goku.get(0);"
keeps giving an error; Incompatible types: java.lang.Object could not be converted to greenfoot.Actor.
java.util.List Goku = getWorld().getObjects(Wombat.class);
if (!Goku.isEmpty())
{
Actor Wombat = Goku.get(0);
int playerX = Wombat.getX();
int playerY = Wombat.getY();
}
thanks

