Sonic is a classic example of Good-vs-Evil. Dr. Robotonic turns all of Sonic's friends into mindless robots, and it is his duty to rescue them from the Doc's evil clutches. (Sorry, new school sonic fans, I will never succumb to the new name of "Dr. Egghead".)
Anyway, to question the moral...