Hi,I am very new to unity & besides building terrains I know next to nothing about game making. I have been trying to follow a tutorial I found (Unity Rapid Prototyping: Flight Sim Control, Terrain Basics, Chase Cam, Skybox - YouTube)to build a very simple flying game. I have followed & done everything the instructor did but once I got to the part where the script needs to be written to control the rotation of the game object with the arrow keys it never works. The script appears in the game objects inspecter column but even when I tried just the debug script i got no conformation at the bottom of the screen telling me the script was deff attached to the game object.The first 50 times I entered the rotation control script nothing would happen, i could go in to game mode but there was no control of the object & now I’m getting an error message( Assets/planepilotscript.cs(13,70): error CS1525: Unexpected symbol `Input’)…Here is the code as i have typed it this last try exactly as he did as far as I can tell…
using UnityEngine;
using System.Collections;
public class planepilotscript : MonoBehaviour {
// Use this for initialization
void Start () {
Debug.Log ("plane pilot script added to: " + GameObject.name);
}
// Update is called once per frame
void Update () {
transform.Rotate ( Input.GetAxis("Vertical"), 0.0f, Input.GetAxis("Horizontal") );
}//
}
Could you please take a look & explain to me what I am doing wrong as if you were talking to an 10 year old because thats how much of a frustrated newbie I am?