She was hit by a car while I was walking on the foot path. Fine. The first event happened while the second was happening. She was hit by a card while I had been walking on the foot path. No . The 'while' suggests 'at the same time', but the Past Perfect Continuous indicates the second event happened before the first