Quantcast
Channel: Questions in topic: "javascripting"
Viewing all articles
Browse latest Browse all 105

';' expected. Insert a semicolon at the end. I already have a ;

$
0
0
It says the error is in the second line under the movement check but I already have a semicolon. I tried to figure it out but I have no idea what to do now. function Update () { //Movement Left and Right var rotation : float = Input.GetAxis ("Horizontal") * rotationSpeed; rotation *= Time.deltaTime; rigidbody.AddRelativeTorque (Vector3.back * rotation); //Jump Ability if(Input.GetKeyDown(KeyCode.W) && isFalling == false) { rigidbody.velocity.y = jumpHeight; } isFalling = true; //Movement Check var stop = GameObject.Find("StopCamera"); var stopScript = (stopCameraScript)stop.GetComponent("stopCameraScript"); var curPos = transform.position; var lastPos : Vector3; if(curPos == lastPos){ stopScript.reset = true; } else { stopScript.reset = false; } lastPos = curPos; } Thanks Some dude

Viewing all articles
Browse latest Browse all 105

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>