Hello and welcome to E health forum.
From the description it seems that you had Inappropriate Sexual Behavior during your childhood.
Your Exposure to sexually explicit material during that period might have resulted in a sexually reactive behavior.
Sexual responses in such reactive children that are considered inappropriate include:-
1. Demonstrating precocious sexualized activities, gestures, language, and knowledge
engaging in extensive mutual sexual play with same age or younger children
2. Engaging in excessive masturbation or demonstrating a preoccupation with sexual activities and ideas
3. engaging in sexual behaviors in public, such as sexual exposure, rubbing, or masturbation
4. Interest in or attempting sexual contact with older children, adolescents, adults, or animals
5. Engaging in or attempting significant sexual encounters with same age or younger children, including masturbation, oral sex, digital penetration, and intercourse
sexually molesting other, and especially younger, children
Now since you have grown up and learnt your mistake and probably there was no major harm done, you need not worry about it. You might consult a counselor at school or a doctor who can provide reassurance and ability to come out of the guilt.
I hope this helps.