I cant get over him

So i have liked this guy for a couple months and then after a while he snapchatted me and kept asking me for nudes and being all weird. He stopped now but i still like him for some reason and i don’t think i actually like him but i just like the idea i have of him. I barely talk to him but i still really like him. All my friends tell me i’m ridiculous to still have a crush of him and that he is an asshole but i keep pushing all the bad things away. He’s the main cause of my stress and i’m always sad bc of him and i get really unmotivated when i think of some things about him but i just can’t get over him even if it’s for the best. Any advice???