i want it so that my boss moves in randomally but not to cross the Y axis at 410, and if he hits the edge of the world to go a different way. What is the best way to do this.
// after moving if (getY()>410) setLocation(getX(), 410);