Males are funny like that. When they are around their mates they feel the need to reject or ignore you to make themselves feel more important or "look cool" in front of their friends. Plus I suppose there is the fact that if they do show affection to you, they will pay for it later (with their friends making fun of them for it, etc).
The best thing you can do is talk to him about and let him know how you feel. Let him know that you don't like it that he ignores when he is around his friends. Ask him why he does it and as I say, you'll probably find he's doing it to "save face" in front of his mates. If that is the case, at least you know that it is nothing personal to you but rather his own insecurities. You do have the added evidence that he does obviously feel something for you in general as, as you say, he is "all over you" when you are alone, which is great.
If you can tough it out, this phase will pass. I have been through it before and it's just an immature thing more than anything. Once he grows up and his mates do too (and they all have girlfriends as well!) you'll find that the awkwardness that you (and he) feel will go away.
As I say though, communication is they key to any relationship. That, coupled with honesty, are the foundations to a loving and fulfilling relationship.
The best thing you can do is talk to him about and let him know how you feel. Let him know that you don't like it that he ignores when he is around his friends. Ask him why he does it and as I say, you'll probably find he's doing it to "save face" in front of his mates. If that is the case, at least you know that it is nothing personal to you but rather his own insecurities. You do have the added evidence that he does obviously feel something for you in general as, as you say, he is "all over you" when you are alone, which is great.
If you can tough it out, this phase will pass. I have been through it before and it's just an immature thing more than anything. Once he grows up and his mates do too (and they all have girlfriends as well!) you'll find that the awkwardness that you (and he) feel will go away.
As I say though, communication is they key to any relationship. That, coupled with honesty, are the foundations to a loving and fulfilling relationship.