Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Error UCE0001: ';' expected. Insert a semicolon at the end, but I already added semicolon. Please help.

$
0
0
This error keeps happening to me, even though I already have a semicolon. Error lines are (12,26),(16,26) and (20,26). Please help, I'm brand new at coding. #pragma strict var moveUp : KeyCode; var moveDown : KeyCode; var speed : float = 10; function Update () { if (Input.GetKey(moveUp)) { Rigidbody 2D.velocity.y = speed; } else if (Input.GetKey(moveDown)) { Rigidbody 2D.velocity.y = speed *-1; } else { Rigidbody 2D.velocity.y = 0; } }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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