When an enemy is close to you, Bob says "Hide!", and then he hides behind an object in the environment. If there's no object nearby, Bob will hide behind a barrier that appears on screen.