When I was a child, ...

Could you shed light on :?

When I was a child, I played the piano. (correct)

When I was a child I was playing the piano.(wrong)

I think you should study these pages:

englishpage.com/verbpage/simplepast.html
englishpage.com/verbpage/pastcontinuous.html