Doctor Eggman is one of the non-playable characters in Lego Dimensions 2: The Rise of Enoch, from the Sonic The Hedgehog franchise.
Dr. Ivo Robotnik, better known by the alias Dr. Eggman, is a human and the arch-nemesis of Sonic the Hedgehog. The large scientist with an IQ of 300 dreams of dominating the world, but his constant plots to create his Eggman Empire are always thwarted by Sonic and his friends.
While the doctor's plans initially consisted of building up incredible armies by turning animals into robots and using them to dominate the land, Dr. Eggman's schemes have since branched into much more global threats as he built war machines, used nuclear devices to threaten entire nations, and even relied on mythological and ancient deities bent on destruction to achieve his goals. Eventually, the mad scientist has gone as far as to target the entire universe and cooked up schemes to control time and space itself.
While all these plans end in failure thanks to the continued efforts of Sonic and his friends, the mad doctor is somehow always able to slip away from certain death or imprisonment and escape at the last moment, making him a constant threat to the universe and a thorn in Sonic's side.
Eggman appears as the main antagonist of this level. After the Device goes wrong, Eggman transports to different dimensions based in the Sonic the Hedgehog World. This prompts Sonic to follow him. After battling in many places--as well as Robo, Mecha, and Metal Sonic--he will use the last Chaos Emerald to rebuild the Death Egg Zone. After being defeated in a robot suit, he will run and hide from Chaos, who will attempt to destroy the Death Egg and Sonic. When realizing Amy Rose is there, he will be whacked by her hammer and lose the final Emerald, which is given to Sonic. After Chaos' defeat, Eggman will follow Amy into a rift loop saying "it's not over, my prickly pal".