Not much later, we see an older Megamind dealing with another problem that we should all be able relate to--the desire to be accepted by society. It is especially difficult for Megamind, being a the only blue alien among his many peers at school, while his rival, Metro Man, seems to always be the object of favor. As we get to understand Megamind's reasons for being a villain, there's an excellent example of role reversal--we perceive the 'bad guy,' Megamind, as the good guy, because we can relate to his problems and understand the motivation behind his actions. We also see the 'good guy', Metro Man, as the bad guy, because he is, ironically, less human than Megamind--Metro Man is without flaw, and is without any understanding or sympathy for Megamind. A good example is one of the earlier scenes, where Megamind accidentally starts a fire when he attempts to use a ray gun to pop corn for his classmates. Metro Man saves the class by extinguishing the fire, and he is praised while everyone shuns Megamind. Metro man and the class look past Megamind's intentions to be good, and only at the fact that a fire has been started from his attempt. They see Megamind in an unfortunately prejudiced way, and they don't consider the motivation for his actions, but only results of the actions themselves.
At that moment, Megamind feels that he and Metro man are destined to have specific roles as the bad guy and the good guy. The whole beginning sequence on the earlier years of Megamind works for well, packing a lot of humanity into first the few minutes. This is great for several reasons--we are immediately to connect to and root for our main character, Megamind, and none of it feels rushed. We immediately understand his jealousy and his desire to be accepted and have his own role--he decides that if he can't be perfect like Metro man, he will try to be what he is 'good' at--being bad. It also enables the rest of the film to explore the development of Megamind's established character and whether he is really stuck with the 'role' he's been given--and it all plays out very well as he discovers the path to one's destiny and identity with his rival Metro Man and his love interest, Roxanne. The film is also legitimately funny on multiple occasions! In short, I believe Megamind is a mega-masterpiece, and that it is also very thoughtful, putting the 'mind' in MEGAMIND.