You have to avoid the comet hitting the planets before the bar disappears by hurling the comet by dragging the mouse in the opposite direction and releasing the mouse button.