- Home /
java script problem
Hello,
I have a problem in my script, the console say that i have to insert a semicolon but i already did this but it keep saying it.
this is the script, can you help me?
public var MovementSpeed : float = 1; public var MovementAmount : float = 1; public var gun : GameObject; public var MovementX : float; public var MovementY : float; public var NewGunPosition : Vector3; public var DefaultPosition : Vector3;
function Start () { DefaultPosition = transform.localposition; }
function Update () { MovementX = Input.GetAxis ("Mouse X") Time.Deltatime MovementAmount; MovementY = Input.GetAxis ("Mouse Y") Time.Deltatime MovementAmount;
New Gun Position = new Vector3 (DefaultPosition.x + MovementX , DefaultPosition.Y + MovementY , DefaultPosition.z) ;
Gun.transform.localposition = Vector3.lerp(Gun.transform.localposition, NewGunPosition, MovementSpeed*Time.Deltatime ) ; }
Thanks in advance
You should use Unity's tutorials and follow their coding standards, especially capitalization, while working with Unity. You've got extra spaces and mis-capitalized words all over the place and you're mixing C# and US syntax.
Duplicate of this question. Please don't ask the same question mutliple times. Sometimes it takes a while for mods to publish new questions. Be patient.
Your answer
Follow this Question
Related Questions
Key and Door Tutorial Help? 2 Answers
insert a semicolon at the end?? 1 Answer
Insert Semicolon error 1 Answer
Main menu camera change script. 1 Answer
Enemy Health Damage 2 Answers