I am trying to make my player turn towards the mouse with the code
but for some reason it says getX() and getY() are non static methods but they should return numbers right.
1 2 3 4 5 6 7 8 | public class Player extends Actor { public void act() { greenfoot.Actor.turnTowards(greenfoot.MouseInfo.getX(), greenfoot.MouseInfo.getX()); } } |