Runescape Movement and camera rotation

The Player moves on clicked location by mouse

and Camera to rotate around the player when Left Right Up Down buttons pressed (just like runescape)

This may be difficult, but im sure a lot of people would like this idea

thanks ++

Try the Unity Script Wiki:

Click to Move

Keyboard Orbit

var object : Transform;

function Update () {

if (Input.GetKey(KeyCode.DownArrow)) transform.RotateAround (object.position, Vector3(-1, 0, 0), 20 * Time.deltaTime);

if (Input.GetKey(KeyCode.UpArrow)) transform.RotateAround (object.position, Vector3(1, 0, 0), 20 * Time.deltaTime);

if (Input.GetKey(KeyCode.RightArrow)) transform.RotateAround (object.position, -Vector3.up, 20 * Time.deltaTime);

if (Input.GetKey(KeyCode.LeftArrow)) transform.RotateAround (object.position, Vector3.up, 20 * Time.deltaTime);

}

this is an updated script: set the object that you want to rotate around as the player in the inspector after adding the script to the camera, this will rotate around your players position.