Jamie Foxx says his voice in 'The Amazing Spider-Man 2' was inspired by Clint Eastwood.

The Oscar-winning actor took cues from his fellow Academy Award winner and actor Alec Baldwin to prepare for his role as villain Electro in the upcoming superhero sequel as he wanted his character to have a quiet, forceful tone.

He said: ''The voice is from me watching Clint Eastwood and Alec Baldwin.

''I didn't want Electro to be funny at all. There were lines I thought he shouldn't say ... this is a man who's angry. He's mad at the gods. He's just using Spider-Man and these people as an excuse to act out and be evil.''

Foxx is well aware of rabid online discussion among fans about the latest comic book adaptations, but he believes people need to give his blue-coloured villain a chance before making up their minds.

He explained: ''It used to be people would wait until they saw the film to decide their opinion. Now it's, 'Ben Affleck is Batman? How f***ing dare you!' What's that about? These blogs don't like anything ... Christian Bale, Heath Ledger, they weren't happy until they saw them. So you just have to not give too much to it.''

The actor's take on Electro differs visually from the villain's appearance in the comics - which envision him in green and yellow spandex - but Foxx feels producers have hit the nail on the head with the character.

He said: ''We tried a few different versions of the look, there were some that involved a lot more blue. But this one just looked the best. And it cut the make-up down from four hours to about one-and-a-half, which is good for me.

''I like this suit. The suit works. It's badass. I could wear this to the clubs.''