unity javascript
So I am doing a game in unity for school about a spaceship avoiding meteorites but I have some problems, I put the script so the spaceship moves up, down, left and right but when it hit the meteorites while moving to any of this sides it starts spinning like crazy and I loose control. Someone help me please this script is the one Im using
if ( Input.GetKey (KeyCode.DownArrow)){ transform.Translate ( -Vector3(0,1,0) 2 Time.deltaTime); }
(that is just moving down for example) Please if someone can give me an easy answer and help me I will appreaciate so much, this is my first time using javascript so I still dont get tha hang of it :/
Your answer
Follow this Question
Related Questions
Need a Script for Changing Scenes after pressing E to open locked door once a key has been found. 0 Answers
GetComponent is not a member of Object 0 Answers
New Hierarchy Son Script 0 Answers
Can't access specific element in multidimensional array (JavaScript) 1 Answer
Do we still need to avoid foreach loops? 3 Answers