I’m trying to make a 2 player game where one person will use the WASD and another person will use the arrow keys. The tutorial uses GetAxisRaw(“Horizontal”), but that uses both WASD and Arrows? Is there anyway that I can set it to only use WASD? My current code with only horizontal movement:
1 Answer
1The input axes are defined in the input manager. There are several “Horizontal” and “Vertical” axes defined. Also every axis can have a primary and secondard button defined. So you can simply create a new set of axes and set them up as you wish.
Alternatively you can simply use methods like GetKey and manually react to the keys you want.
