CameraRelativeControl.js with arrow keys

Hello,

i want to control the character with the arrow keys of my keyboard, because the Unity Remote connection always crash down.

Can somebody help me with the script CameraRelativeControl.js… there i want to use following movement code:

var m_RotationSpeed = 300;
	var m_WalkSpeed = 10;
	
	var xDelta : float = Input.GetAxis("Horizontal") * Time.deltaTime * m_RotationSpeed;
	var zDelta : float = Input.GetAxis("Vertical") * Time.deltaTime * m_WalkSpeed;

In CameraRelativeControl.js there is one line like this:

character.Move( movement );

so i think i have to change also the movement values?
I dont know how to do?

Thanxx

You shouldn’t have to change any movement values. Just change the spots that use an iPhone specific feature like the touch joysticks to the Input.GetAxis.

yes you`re right! Thanx :smile: