Getting over the guy when....

So I need to get over this guy. We are both really into eachother but it’s too complicated right now to do anything further about it all. He became really close with my ex after we broke up... We slept together and that was great and all but we talked and agreed nothing else can happen for their friendships sake.

Help..