Hello, I am trying to create a game where when a tile (Actor Dirt) is clicked, my main actor (Wizard) will move to the clicked tile. However, when I type the following code in my Dirt class, I get an error that says "non-static method setLocation(int,int) cannot be referenced from a static context" and I was looking for a possible way to get around this. Thanks!!
if (Greenfoot.mouseClicked(this))
{
HeroWizard.setLocation(this.getX(), this.getY());
}

