What does it mean when a guy likes you but distances himself?

Theres this guy I've been flirting with the past few weeks and its pretty darn obvious he's interested. Starting last week I think he's been mentioning stuffs like people are telling him "something" and his usual comment about it is "weird". Like that day I was with him, his guy friend grabbed him far from me and talked about something while stealing a couple of glances at me. When we got left alone he mentioned his friend told him something weird. I've asked him a few times what its about but he never tells me, he just says "as long as you won't get mad". To me its like he's dropping hints that he wants to tell me something. Ever since this started, he's been distant. he's stopped texting and all that, though when we run into each other and end up hanging out, we get as close and flirtatious like we originally were.
What does it mean when a guy likes you but distances himself?
Post Opinion