Since this is a grammar bite (don’t worry- only 13 calories and 50mg of brilliance) I’ll try to be as succinct as possible.
Effect describes a few different things:
An output from an input (spending too much time around people had the effect of making Hamlet hallucinate).
The power of influence (her hysterical screaming had no effect on the interviewer).
The effect of the pumpkin falling through the sky was devastating to the town of Little Hancock.
Her effect on him was powerful- he couldn’t stop staring at her Uggs paired with shorts and wondered what in the world?!
Affect follows an effect: it describes how something was impacted by the “effect” in question, produces a change
Jeremiah was severely affected by the noxious gas emitted from the oven.
I knew that slapping the palm tree would not affect it in the slightest, so I proceeded to burn it with a flamethrower.
Hopefully this bit helps. I’m not here to give you the full lowdown on the rules of it to build a foundation- rather, I wish to enhance your current foundation.