How to make the past perfect continuous.
It consists of two things:
1. the past perfect of the verb To Be -> had been
2. Verb + ing -> walking
I had been walking for hours when I found the small shop.
They had been trying to get inside when the police showed up.