I need help dropping an actor subclass (marker) at the current location of my other subclass (turtle) if there is not a marker at the turtles current location.
Here is a snippet of my method and I have no clue how to fix it
This is not running the first 3 lines, I know HERE is not in the appropriate location but I can't figure out how to indicate that it must drop a marker at the turtles current location.
public void move()
{
while (this.isClear(HERE))
{
Marker marker = new Marker();
this.add(marker);
}
super.move(1);
}
