Moving Forward


I was wondering what javascript code you can use to make a character go forward when the player hits “W”, and back when he presses “S”, and turns when he presses “A” or “D”. Please comment the code so that I can see what makes what work.

Thank You for Your Time

Go in Asset->IMport Asset->Character Controller. Drag the 1st or 3rd Person Controller prefabs into your scene, play around, then look the scripts 3rd or FPSInputController. It’s completely commented, but there is a lot to do. So grab a coffe, tell your friends they won’t see you for a while, and go for it !