0
Answered

2 players

PleaseStayAway 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 1

hey, im trying to make a game with 2 players and i can move my player with wasd but don't understand how i could use the arrow keys to move the 2nd player

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Answered

Hi PleaseStayAway,

You can accomplish this by creating two different sets of axes in the Unity Input Manager:

https://docs.unity3d.com/Manual/class-InputManager.html

For example, "Horizontal1" and "Vertical1" along with "Horizontal2" and "Vertical2". Map the first to WASD, and the second to the arrow keys.