- Home /
2D Game Movement script(W,A,S,D input only)?
HI! I'am looking for a script that will do next: -Move character only if I press this W,A,S or D not arrows..:) -Have a jump option..:)
I'am beginner in Unity and I need that script...please help me...
Comment
Best Answer
Answer by whydoidoit · Jul 11, 2012 at 01:30 PM
Just test for the keys directly:
if(Input.GetKey("w")) {
//Do something
}