Johnny Depp played the character of Willy Wonka in the 2005 movie, Charlie and the Chocolate Factory. Gene Wilder played the character of Willy Wonka in the 1971 movie Willy Wonka and the Chocolate Factory. In the 1971 movie Williy Wonka is played by Gene Wilder, in the 2005 movie he is played by Johnny Depp. yeh. what they said.