In Antz, General Mandible justifies sending soldiers loyal to the Queen on a suicide mission against a peaceful termite colony just to get them out of the way, assassinating said Queen, and flooding the ant colony to kill off the "weak" workers by claiming it's "for the good of the colony". Near the end, his own second-in-command Cutter has had enough of Mandible's murderous ways and sides with the heroes, saying it's "for the good of the colony". Mandible snaps and screams "I am the colony!", revealing it was all about his satisfying his own ego.
Syndrome aka Buddy Pine in The Incredibles. As a boy, he constantly pesters Mr. Incredible and implores him to let him be his sidekick. When he tries to show his skills, and almost gets killed doing so, the resulting damage leads to a widespread Super Registration Act which forces Mr. Incredible into retirement and hiding. Yet years later, Syndrome still has the gall to say he got the short end of the stick.
Both Simba and Scar in The Lion King think this about being king. Simba has the excuse of being a cub, while Scar nearly destroys the Pride Lands.
In Megamind, even after everyone believed Metro Man was dead, Hal seemed to think it was an appropriate time to invite Roxanne to his party. His selfishness is made worse by gaining superpowers.
In Spirited Away, after Chihiro has pried a job out of Yubaba, over relentless and vicious attempts to intimidate her out of asking, Yubaba laments her promise to employ anyone who asked for a job: it makes her have to be so nice all the time, and she really hates that.
Also, the bathhouse employees could count. They don't care that a strange spirit has somehow taken up residence in the bathhouse and is demanding all of the food and water. He's getting them gold! And they only start to be careful around him after they realize that he might eat one of them.
In Toy Story 2, Stinky Pete the Prospector shuts the ventilator and makes Woody realize that the Prospector turned on the TV the previous night to prevent Woody from escaping, and framed Jessie. Jessie protests that "This isn't fair!" and an enraged Prospector reminds them that what's not fair is how toys as unpopular as them, especially if they go to children like Andy and how Andy and every other child grows up, have to spend a lifetime on a dime store shelf watching every toy other than them be sold, just like he did. But then he makes it clear that HE would rather go to the museum in Tokyo to last forever than end up in another dime store or in storage. The museum needs the whole package including all four of the Roundup Gang dolls, or the deal is off and they end up in storage or in a dime store. So the Prospector will stop at nothing to make sure he gets to the museum, and even goes ax "out of his box" (and already literally out of his box) enough to rip Woody about to prevent him from running, arguing that Woody can be fixed like before.
Wreck-It Ralph: The phrase "going Turbo" originated when the racing game character Turbo got jealous of a new game stealing his popularity, so he abandoned his game to join the other one, getting both games decommissioned. He so greatly considers himself more important than anyone else that he invades another racing game, Sugar Rush, making its intended main character (Vanellope) a bullied glitch, and takes over her role as ruler of the game, so that he has yet another chance to be a popular and victorious racer as King Candy.
Films — Live Action
At the end of Brazil, the protagonist is tortured by his old friend and informational retrieval specialist, Jack. As he begs for mercy, Jack angrily calls the protagonist a "stupid bastard" for putting him in the position of being associated with a dissident.
Citizen Kane: Kane’s philosophy of life is to be loved in his own terms. Lampshaded spectacularly:
Kane: [pleading] Don't go, Susan. You mustn't go. You can't do this to me. Susan:I see. So it's you who this is being done to. It's not me at all. Not how I feel. Not what it means to me. [laughs] I can't do this to you? [odd smile] Oh, yes I can.
In Iron Man 2 as the NYPD haul him away, Hammer accuses Pepper of trying to "pin [the blame]" for the Hammer Drone attack on him (while simultaneously complimenting her on her ruthlessness). This, despite the fact that the Hammer drones going rogue, resulting in millions of dollars in property damage and dozens of casualties, was basically entirely his fault. While he didn't specifically intend to cause what was going on, he illegally broke Vanko out of prison and gave a known mechanical genius and psycho access to all his technology, all just to further shady-at-best business practices. The most charitable option is that his plans have Gone Horribly Wrong.
Waldo Lydecker of Laura is so full of himself, even when he flashes back to Laura's old life, it's through the filter of how great he is.
Magneto: Mystique has discovered plans of a base that Stryker's been operating out of for decades. Only we don't know where it is. We thought one of you might.
Wolverine: The professor already tried [to look for hints about Stryker in my mind].
Magneto (sighs): Once again, you think it's all about you.
It's also a callback to X-Men, when everyone is certain that Magneto is trying to kidnap Wolverine, only to discover that he's actually after Rogue
Wolverine: What do you want with me?
Magneto:You? My dear boy, whoever said anything about wanting you? *glance towards Rogue, cue Oh Crap expression from her and Wolverine*
The fictionalized version of Mark Zuckerburg in The Social Network has a pretty clear shade of this, expecting everyone around him to conform to his wishes, demands total devotion and praise, and is contemptuous of anyone who doesn't treat him as he feels he deserves. This video nicely sums it up.
During the climax of Sisters Of Death, The Mole (Sylvia) rants to Judy about how the death of Liz seven years ago ruined her life. Apparently, she's the real victim, not Liz (shot in the head during a sabotaged hazing ritual) nor their sorority sisters murdered over the course of the film.