Now, of course, we expect our characters to be more nuanced. There is no such thing as the perfect hero. Villains have to have good (and understandable) reasons for acting the way they are (and that can include the fact they simply enjoy being evil. To them, that is reason enough!).
What I love about stories is that there is no one perfect format. I love books in all their forms but totally understand why audiobooks work for some, whereas the print format doesn't. Our focus as writers is to come up with stories that can work in several formats. Our focus is to entertain. I've never understood why some look down on escapism. The world is sad and bad enough to make a wish to escape understandable. After all why did our cavemen ancestors tell stories? To remember what was important. To bring the community closer together. To escape the cares of their day and the ones to come for a while.
So as a writer then I want my characters to appeal to readers. I also want to drop my characters right in it whenever I can. I want my books to engage people. It's a good thing to aim for: to improve your storytelling as much as possible. You discover better ways of expressing things, learn what works and what doesn't. Enjoy your storytelling and relish every moment of it.