I hate it when guys do that!, it really just puts a big sign saying I have a split personality on there forehead. The best way you can tell is if one day he's all hugging on you and then the next day he's not. This isn't the most ideal guy to go after it already is showing you the kind of relationship he would have with you. The we can act like a couple outside of school but inside school I don't know you. So I'd just move on and find a guy who doesn't care what his friends think and will actually show affection to you. I have been through this situation as well he was all loving outside of school but in school he kind of ignored me and pretended he didn knwo me.