Need Help With My "Public Float" Not Working.

I started teaching myself how to make a 2D MMO Game today with a tutorial, and I hit a road block. My float values or anything in C# will not work. I just don’t know what to do.

As you can see from these images, all the words that should be the darker blue are not. The Move Speed won’t even show up in the inspector. Anyone have a fix they could help me with?


2675905--188950--Screen Shot 2016-06-12 at 9.02.26 PM.png

Any errors in the console?

1 Like

You have a coma between Input and GetAxisRaw instead of a period.

And you’ve missed a multiplication sign in front of Time.deltaTime.

1 Like

Thx man

Thx for the fix, my bad.

I have no idea, if this helps, I didn’t download anything other than just unity. Do I need a special C# application to get my floats to work?

No. He’s referring to the console inside the Unity editor. If there is a problem with your code it will display a message.

http://docs.unity3d.com/Manual/Console.html

1 Like