- Home /
Space Invaders movement?
Hey,
I'm working on a space invaders game but how do I controll the movement script? I want to have it in javascript(Unityscript).
Thanks //Proximal-Pyro
Please add what code you already have so someone can help you.
UnityAnswers is a volunteer run knowledge base for helping people who are looking for information or who are stuck on particular issue. It isn't a free scripting service, and it wouldn't help you if we were as you wouldn't learn anything.
Some people will also check whether or not you leave correctly answered question un-marked before deciding whether or not to help, so it pays to give credit where due, to those who help you.
Even if you don't have a script, you can write in your logic here. We can help to check whether if the logic will work or not.
Answer by alone1992 · Mar 11, 2013 at 01:13 PM
// vertical move
transform.Translate = (0,Input.GetAxis("Vertical"),0);
// horizontal move
transform.Translate = (Input.GetAxis("Horizontal"),0,0);