- Home /
movement and float error,I'm trying to get a ball to move only on X & Z axsis and there are errors that i don't know how to solve
,
Answer by Legend_Bacon · Oct 26, 2018 at 02:14 PM
Hello there,
Before posting on here, I suggest you learn C# and programming in general a little more. From your code above it seems you're pretty new at this.
But anyways, here are some pointers:
If you want to declare a new float, you can do "float moveX". You can't place a dot in between, as that would mean you're trying to set a field named "moveX" INSIDE the "float" class.
Capitalisation matters. If you declare a float "inputX", it is "inputX". Not "InputX", not "INPUTX", not "inputx". Check that you're writing it right.
I hope that helps!
Cheers,
~LegendBacon
Answer by hameed-ullah-jan · Oct 26, 2018 at 02:23 PM
there are too many syntax errors like you didn't even insert semicolons, my suggestion would be to watch few tutorials on C# language, and learn how to write code in C#.
Your answer
Follow this Question
Related Questions
Too many errors in the IDE (even for a fresh project), but editor doesn't throw any errors! 1 Answer
Fatal error! System out of memory! Unity 3D 1 Answer
Moving a character to a waypoint 1 Answer
Visual Studio Code doesn't work for with unity 2 Answers
What is happening and what does this MEAN!?!?!?!?!?!?!?!? AHHHHH!!!!,WHAT IS HAPPENING?!?! 1 Answer