- Home /
Problem with getaxis and multiple Horizontal/Vertical fields
Hello, I am making a multiplayer game for 2 people (on one screen), and trying to use the getaxis function to determine direction.
So I went into the project settings, and added another Horizontal and Vertical fields in the Input Manager, changed one (by the names Horizontal_A and Verical_A) to be up down left right (deleted the alt buttons), and the second (by the names Horizontal_B and Verical_B) to be w, s, d, a (again, deleted the alt buttons).
This seems to work fine, until I press two opposite buttons of one character. For example, if player one presses right and left together, player 1 freezes (as expected), however, player 2 is no longer able to press w (as in go up) for some reason (other directions work fine). Same the way round, if player 2 presses a and s, player 2 freezes (as expected), but player 1 can no longer move left (other directions work fine).
Do you think this a problem with the code? or something I'm not doing properly in the settings?