So I need to create a constructor with no arguments that ensures that the Spider that is going into the world starts by facing down and to wait a random delay before it starts moving
import java.util.Random
int timer;
public void act() {
Random rand = new Random();
timer = rand.nextInt(Upperbound) + lowerbound ;
while(timer > 0) {
timer--;
}
// your code for moving
}import java.util.Random
int timer;
public Spider(){
rotate(90);
}
public void act() {
Random rand = new Random();
timer = rand.nextInt(350) + 25;
if( timer > 0) {
timer--;
}
else {
// your code for moving
}
}