Questions & Answers about Me dolían tanto los ojos que apenas podía parpadear.
Because doler works like gustar: the thing that causes the pain is the grammatical subject, and the person who feels it is shown with an indirect object pronoun.
So in Me dolían tanto los ojos:
- me = to me
- los ojos = the subject
- dolían = were hurting
Literally, it is closer to My eyes were hurting to me, although in natural English we say My eyes hurt.
Mis ojos dolían is understandable, but it does not sound like the normal Spanish way to express this idea.