- Home /
Question by
RickHurd · Aug 05, 2014 at 12:11 AM ·
javascriptinputmultiplayerjoystickplayersettings
How do I call on a player to inherit the input based on the joystick number?
How would I go about making a list of input commands in a script and telling each "player"(joystick) to use a set of input in the list?
I'm using JS for now, is there a command or Keyword for "Player" or "Joystick" ?
I think I can make an array to list like this in the spawner script.
// setup player 1's buttons
p = new GamePlayerSettings();
p.updownButton = "Vertical1";
p.sidewaysButton = "Horizontal1";
p.jumpButton = "Jump1";
p.shootButton = "Gun1";
p.reloadButton = "Reload1";
But how do I get that information to the movement script, and how do I make the movement script know what joystick I am using?
I have all of my input setup, That's not the issue. Its getting the input to the correct joystick via the movement script that I have in each character.
Comment