Just because your friend is moving doesn't mean you can't talk to or see him/her. Remind yourself that constantly. Know that you are lucky to have the capability to stay in contact with your friend. And just think how cool it will be to casually tell people, "yeah, I was talking to my friend who lives in *insert location here* and....." and things like that.