Hi trying to get the boss to move between certain distances but it doesnt seem to work out:
Trying to move between 750 and 400 only. Once it reaches either end I want it to change direction to the other.
public void bossMovementPattern1(){
if(getX() == 400)
{
setLocation ( getX() - velocity, getY() );
}
else {
if(getX() <= 750)
{
setLocation ( getX() + velocity, getY() );
}
}
}


