Actually, effect and affect are both nouns and verbs. Your explanation is incorrect.
You can "create an effect" (noun). You can "effect a change" (verb).
"x affects y" (verb). "A flat affect" (noun).
Note that the last use of "affect" is not the same as "effect". If you said "a flat effect" you might be saying that the paintwork on a 3D object makes it look flat. "A flat affect" means an observed expression of emotion (used by psychologists).