- Home /
Question by
Armoth288 · Sep 01, 2013 at 10:24 PM ·
movement script
(Fixed)Need a little help with my script.
I fixed it. Please delete this thread, Forum Moderators.
Comment
For the next time you post a question, I suggest you take a bit more time to properly format your code, as it's quite hard to read (although already better than no formatting :D)
http://answers.unity3d.com/page/newuser.html
c) Posting questions that contain script code that is not formated correct.
Answer by fherbst · Sep 01, 2013 at 10:43 PM
This
move = Input.GetKeyDown(KeyCode.D);
has to be in your Update method. (I haven't checked the rest of the code - this is just an obvious issue! You have to check for the key to be pressed every frame, not only once at the start)