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

PlatformMover-Error BCE0044: expecting EOF, found '}'

$
0
0
Have been following this Unity tutorial on Youtube for a side scroller game and writing a script to make a platform move however i keep getting the error BCE0044: expecting EOF, found '}'. I've tried deleting every single "}" but more errors pop up Please Help Here is the script #pragma strict function Start () { var Xpos : float; var Ypos : float; var max : boolean; } var Vert : boolean; var maxAmount : int; var step : float; Xpos = transform.position.x; ypos = transform.position.y; } function Update () { if(Vert){ if(transform.position.y >= Ypos = maxAmount){ max = true; } else if(transform.position.y <= ypos){ max = false; } } else { if(transform.position.x >= Xpos = maxAmount){ max = true; } else if(transform.position.x <= Xpos){ max = false; } } if(Vert){ if(!max){ transform.position.y += step; } else { transform.position.y -= step; } } else { 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>