Turbo from Ralph is good and unexpected villian too and with good subtle hints as well.
Thisthisthisthisthis
You can’t just make a character start being evil with no explanation or foreshadowing or any character hints whatsoever. It makes the viewer feel cheated.
King Candy was already a good villain to begin with, coming off more as a well-intentioned extremist. He gave Ralph what he wanted up front with no strings attached, and then convinced him that doing something bad was indeed for the greater good, then came the twist that he was lying the whole time.
Revealing the fact that he has a secret identity was the icing on the cake.