
Melt butter in a large skillet over medium heat.
Once melted, add onion and cook, stirring frequently, until softened (about 3 minutes).
Sprinkle flour over the onion and stir constantly until it’s absorbed, then another 30 seconds longer to lightly toast the flour.
Add corn, sugar, salt, and pepper and stir.
Slowly drizzle in the half and half, while stirring, and bring to a simmer. Cook, stirring frequently, until thickened. Taste-test and add more salt and pepper as needed. Serve warm.