When I was young, I wanted to become an inventor.

Literal

I [topic-は] young time, inventor [goal-に] wanted-to-become.

発明家 (はつめいか) — 発明 ('invention') + 家 (suffix for 'person who does X'). ~になりたかった is past tense of ~になりたい. とき marks the temporal setting.