So i tried to create my first 2d program . I learn from this tutorial :
But at 4:35 , that code is not working for me… For some reasons Unity keep saying i have errors.
I’m 100% sure i selected Javascript from the dropdown menu of the script.
First of all, what you should do this time:
-Write down the errors too
What you should do next time:
-Give the topic a name that actually says something
I came across this bug too, i fixed it by defining a new Input and using that instead of keycodes, if you don’t know how that works, just ask
post the code you have, if we cannot see what you have done we can’t help point out where it’s going wrong. Showing us the tutorial you are following doesn’t help if you’ve put a “.” or “;” in the wrong place…
use [code ][/code ] tags when pasting code into the forums, there is a sticky on them at the top of the scripting forum.
ok, so a missing “;” error… it might not be on the line it’s complaining about, the compiler might have “run on” past the missing “;” thinking it’s all one line and complained when it got to the “end”.
quite seriously, post the code you have, then we can see the full picture.
CODE FIXED. I don’t even know how is that possible but today all errors are gone… No changes. I just open my project and no errors anymore. weird. anyway thank you guys.