Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

BCE0043 unexpected token: ")"?

$
0
0
Im new to coding, and I got error Assets/Scripts/cannon shoot.js(10,64): BCE0043: Unexpected token: )., I know that means im not using ")" right, but I can't figure out whats wrong with my code. I checked to make sure each "(" had a corresponding ")", so whats wrong with my code? just so you know, the code is in Javascript, my game is 2D, and im using it to make a bubble fly up when i click. Heres my code: #pragma strict function Start () { } function Update () { if (Input.GetMouseButtonDown) transform.Translate (Vector2(0,1,)); }

Viewing all articles
Browse latest Browse all 1875

Trending Articles



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