If you mean something like Toontown where you play as the Cogs, then no — there is no such game. The Cogs in Toontown are the antagonists you fight, not characters you control.