- Home /
Multiplayer (two people on 1 PC)
I want to make a game where i can drive one car with the ARROW keys and fy friend can control the other car with the WASD keys. I already know how to make two cameras on one screen (split screen). I am not very good at coding so help is needed!
http://docs.unity3d.com/Documentation/Components/class-Input$$anonymous$$anager.html
Set up different inputs for each player. Note the defaults for vertical and horizontal include both wasd and arrows. Remove the alt positive and negative buttons, then create secondary horz and vert inputs for player 2 (as well as fire/use etc etc).
Answer by getyour411 · Sep 16, 2013 at 06:05 AM
You don't need to do anything extraordinary for this. You probably have something scanning for if(Input.GetKeyDown(XXX)) // do stuff
, so add additional logic blocks for the remaining keys and apply the desired effect (brake, gas, turn, whatever) to the proper transform.target.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Local Multiplayer, Player Sign In c# 1 Answer
splitscreen fps help 1 Answer
Split Screen Game Audio Listeners 5 Answers
NEED p2 car script 0 Answers