Dense and diffuse gas in dynamically active clouds