Trouble in Paradise

So I have this guy friend, Ryan. I have very strong feelings for him and we have had sex a few times but the other day he told me no we just friends. I took it pretty bad so I invited my friend Enzo who is like a brother to me. So Ryan started acting like an asshole because I was with Enzo but I don't get that cause he is the one who said we just friends. Any opinions on what's going on with Ryan? Please help!