ok so im making a simple third person game and i need help making the camera rotate with the player well it moves with the player but not rotate does anyone know how to script this
Have you tried to make the camera a child entity of the player?
yes Ii have tried tht but I want the camerato rotate when i turn the character left it goes left
You can get the angle of rotation of the camera and use this value to set the angle of rotation of the entity. For example, as in this tutorial.
If you are familiar with events, you can pass the camera’s current rotation angle from the camera script and listen to the event in the entity script. This will make the code more productive.
ok thnx for that info Ill try to do it