|
Trying to make a pair of characters on a 2d environment move different. I need one to use wasd and the other to use the arrow keys W/"up"=jump a/"left"=move left d/"right"=move right s/"down"=cause object behind them to change position when they're in front of it. Are there any guides for altering the control scheme of FPS walker? using javascript for this >_>
(comments are locked)
|
|
You should look into keycodes for Input. What you need to do then is implement some sort of condition in which a MonoBehaviour script can be applied to 2 different Game Objects but accept 2 different forms of input. Perhaps a boolean which you could set to true for player 1 and leave false for player 2, which on Update or wherever you're getting your input in check for the value of that variable and switch between input schemes. Hope that helps. == Not really, sorry, could you explain how I could apply that to FPSwalker to get what I need from it? Then I could make two FPSwalker scripts (FPSwalkerS and FPSwalkerN) with different imputs >_>; sorry for being difficult :(
Oct 22 '10 at 08:06 PM
shadowclasper
(comments are locked)
|
