Assets/NewBehaviourScript BACKUP.js(8,26): UCE0001: ‘;’ expected. Insert a semicolon at the end.
I went to the exact line and exact color but no matter what it kept giving me this alert.
This might be a simple mistake but if anyone knows how to fix this please respond.
Below is my script.
lol that looks more like a typo or a mistake he made without double checking code than necessarily misundestanding how to code, happens all the time and when you’re on a big project you just don’t realise what you’ve done because there’s so much there.
var rb: Rigidbody;
rb.AddRelativeForce(Vector3.back * rotation);
You need a variable reference to your Rigidbody, assigned in the inspector.
Should be correct unless my UnityScript syntax is off.
(Insert something about using C# :p)
Goes at the top under the #pragma strict. it is a VARIABLE.
There is only so much I can give you. I suggest you search for some more tutorials on basic programming.
Is there any particular reason you decided to do this using UnityScript? You should consider using C# instead unless it would be unpractical for some reason.
At this point im sorry but I have to say this.
STOP, Just stop.
You need to go learn basic programming concepts.
Everyone has been here, starting from scratch, dont make the same mistake like a lot of people thinking you can “make a game”. It is a lot of work and skill, a lot that you dont have yet. Start from the bottom and NOT on unity.
You can still use Unity and learn programming at the same time. But, start learning C#, not UnityScript.
But just use Unity to compile the code and view the Console. Practice creating scripts and using Debug.Log in the scripts to print information to the Console. In unity editor the information is put in the console so you can see what the script is doing.
Good idea.
I would like to personally recommend Quill18Creates on YouTube.
He has a pure C# tutorial which should help you out, depending on how you learn.