|
Hello, I have a question about controlling and object. I want to use WASD to control an object from a 2D perspective (so when W is pressed the object moves up, S down, etc.), I know how to position the camera in the right place, but how would I control the movement?
(comments are locked)
|
|
This will move an object depending on its rotation: I am somewhat new to unity, where would I put this function inside of a script?
Nov 07 '10 at 05:42 PM
Tyler 2
Create a new C# script and put this into the Update() function.
Nov 08 '10 at 05:12 AM
IJM
(comments are locked)
|
|
you could also add the first person prefab controller to your scene and disable the mouselook script. then place your camera wherever you want and hit play. the camera will remain in the same position, based on weather or not you move the character using awsd. hope this helps. shawn
(comments are locked)
|
