In this day and age with all the electronic media that JK has mentioned, you can easily stay in touch. You should do that for a long long time. When you can talk with each other in any of the ways JK has mentioned, the time apart can be handled very successfully. Try to set up some visiting time between the two of you, depending on your age and what your parents agree is healthy. I know how you feel. As a young person, my family moved a great deal and I was always sad and lonely with every single move. I hope you and your friend will stay in touch one way or another.