Working On Lesson One but having a scripting error

So I think I’m doing the tutorial right but every time I check Unity I see this
Playercontroller.start cannot have a void type
and a variety of other issues. I have included a screen shot of the issue as well as the source code. I’m very new to Unity. The only coding experience I have is with the Feralheart preset code but that was with Ogre.

Your start function is missing a closing brace ‘}’.

Also, the Unity events are ‘Start()’ and ‘FixedUpdate()’ with capitals.

Thanks,
I’m still curious if there’s other things that I’m missing

Also the brackets immediately following the function name should be these ( ), not these { }

Make those changes and find out :slight_smile: Basic syntax errors will almost always cause other errors to appear because the compiler cannot make sense of your code. After you fix the first error the rest might be fixed too. If not then work your way through them in order.

If you’re going to continue to learn some coding in Unity I’d recommend getting a C# reference and learning some of the language by itself. Take note that Unity currently uses the older C# 4 and .Net 3.5 framework. eg. C# in a Nutshell or similar, or some other online reference.

Thanks guys. I was working on this last night after work and I guess I must have made a syntax error. XD that’s the last time I code while tired

No… no it’s not :slight_smile: