I know, this topic has already filled lots of discussions, but mine doesn't work.
The Voldemort class needs to shoot an AvadaKedavra that aims for the Harry class.
That's what my code acutally looks like:
The error message just tells me that there's something wrong with the turnTowards method.
private void fire()
{
AvadaKedavra avadaKedavra = new AvadaKedavra();
avadaKedavra.setRotation(Greenfoot.getRandomNumber(10) - 100);
getWorld().addObject(avadaKedavra, getX(), getY());
turnTowards(harry.getX(),harry.getY());
}
