I have a lot of coding in my game and specific things that I used in the beginning of the game glitch later on and don't work properly.
public void act()
{
ifCanSeeTurtle();
}
public void ifCanSeeTurtle()
{
if (canSee(Turtle.class))
{
eat(Turtle.class);
setImage("rocketCopy02.png");
move(4);
}
}