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

Error Code BCE0044

$
0
0
So I told me to put a } to end the function and I did but I got another BCE0044 saying it expected else but got } which is what it told me to put I am going crazy it is so annoying >:( #pragma strict private var Xpos : float; private var Ypos : float; private var max : boolean; var Vert : boolean; var maxAmount : int; var step : float; function Start () { Xpos = transform.position.x; Ypos = transform.position.y; } function Update () { //SET THE MAX if (Vert){ //Vertical movement if(transform.position.y >= Ypos + maxAmount) { max = true; } else if(transform.position.y <= Ypos) max = false; } } else { //Horizontal movement if(transform.position.x >= Xpos + maxAmount) { max = true; } else if(transform.position.x <= Xpos) max = false; } { } //MOVING THE PLATFORM if(Vert){ //Vertical movement if(!max){ transform.position.y += step; } else { transform.position.y -= step; } } else { //Horizontal movement if (!max){ transform.position.x += step; } else { transform.position.x -= step; } }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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