Hello I am making a tilt maze type game and I have looked up many scripts on how to apply the arrow keys to control it and every one of them seems to have not worked and it tells me that I have compile errors even though I used exactly what the tutorial said to use.
if (Input.GetKey(KeyCode.UpArrow)) {
DoThis () ;
}
KeyCode.UpArrow
KeyCode.DownArrow
KeyCode.LeftArrow
KeyCode.RightArrow
Get Axis would probably work better but… this is what you asked.
Input.GetAxis(“Horizontal”)