They never actually act like friends. Instead Anakin goes on about saving Obi-Wan and Obi-Wan denies it. They have the absolute worst on-screen chemistry of all time. ANH at least makes it seem like Vader and Obi-Wan really were good friends but the PT fails at actually showing it.
If you watch The Clone Wars animated series, you will see that they actually were good friends.