I've been contemplating posting about this. 

!!I AM YOUNG AND I HAVE BEEN DIAGNOSED!!

I'm 16-year-old boy and I got obsessive feelings for my (now ex) best friend. Him and I were very much two peas in a pod. We met on discord a few months back, he and I didnt like each other when we first met. But, after 5 hours of voice calling with mutual online friends, a friendship began to bloom. 

My ex-friend and I ended up becoming very close nd we found out that we lived 11 minutes away. We went to some thing I planned on taking my then girlfriend to. He defended me when her and I broke up and we became even closer.

The issues started coming in when my next partner and I split and they suicide-baited me into trying to get back together with her. He didn't want to drop her and I told him I wasnt gonna be friends with someone that allows a person to suicide-bait. He blocked me but showed up at my house to return my book I loaned him. He said "he just wanted to see me again". I was trying to figure out why I felt this way, and I figured out I liked him. 

He confessed he liked me too, and that was surprising. I saw something blossom in me I havent in years. But, issue one, he has a girlfriend. He wanted to have sex with me and I didn't want him to cheat. A week later when we hung out again, him and his girlfriend had broken up. We ended up having sex. I didn't enjoy having sex but I like the feeling of being close to him like that. 

This Monday, I noticed he was more withdrawn from me. I didn't understand until he confessed he only said he liked me for lust. It fucking broke me, I felt so bad. I cried for hours and begged he would just pay me back for using me by dating me for a temporary time. I expressed my obsessive feelings and skewed since of friendships and love. He said he undestood but would not put us in a place of hating each other or make me hate him. He said he wanted to help and stay as my best friend.

The next day, eveything was good. Until, I accused him of trying to sleep and date his ex. He said no but it made me angry. He cut me out of his life again. I don't know how long it's gonna last but he was my everythinf because my home life isnt the best. He blocked me on all social media and my phone number too. I just want him back and I want to hug him and cry.

Am I a bad person? Can I get advice on how to cope next time something like this happens?