Yes, they are very sensitive to chemicals in the air and can detect food. The "blobs" usually form when food is scarce. I'm not sure if they've figured out how this mass of single celled amoeba-like organisms can work in concert to pull up stakes and start moving to a new location.
Al