Search Unity

2D Player Controller Question

Discussion in 'Editor & General Support' started by BenBonkGames, Mar 17, 2019.

  1. BenBonkGames

    BenBonkGames

    Joined:
    Jul 13, 2018
    Posts:
    16
    Hello so I am fairly new to Unity and I am making a 2 player platformer with Input.GetAxis as my main way of movement. However, since this is a 2 player co-op like game I want it so one character gets WASD, and the other gets the arrow keys but the "a" and "d" keys control both characters, and same with arrow keys. Basically what I am asking is there a way to change it so WASD can control one character but not the other, or vice versa. Sorry if this is kind of confusing but any help would be appreciated.