If the camera is looking away from the player swap player.x and camera.x. This wont get it to rotate though only look at the player.
You could attach the camera to a vertex of an object that is the right distance away from the player. The object is set to the players position and then rotates accordingly.
I can't really explain this properly. That probably doesnt make sense, I can't think how to explain it any better.
For some reason, my ambition always seems to beat my ability.
Re: camera rotation
[Re: boyax]
#265353 05/12/0909:0405/12/0909:04