Yesterday morning I got up and looked out of the window. The sun was shining but the ground was very wet. It had been raining. It was not raining when I looked out of the window. the sun was shining. But i had been raining before. That's why the ground was wet. Had been -ing is the past perfect continuous. You can say the something had been happening for a period of time before something else ha..