Hello, I want my actor to go to a location, I tried the code below but the actor will keep shaking in the location. Please help me.
public void goTo(int x, int y){ if(getX() != x || getY() != y){ turnTowards(x, y); move(velocity); } }