Game Development Community

2 players on the same computer

by Mathieu · in Torque Game Engine · 11/14/2002 (2:08 am) · 3 replies

Hi,
Does someone already tryed to make a multiplayer game without using the network engine?
2 (or more) players on the same computer, using the same keyboard.

There is limitation with the keyboard? (pressing 5-6 keys simultaneously)
Is it difficult to load and to activate 2 Torque players in the game?

Thanks

- sorry for my english, frenchy frog... -

#1
11/23/2002 (11:39 am)
I'm trying to find the best way to do this for a week.
I realy need advises.

So, I need to have 4 cars controled by 4 peoples on the same computer.


Do I need 4 ClientConnections to the game? each creating 1 player controling 1 car.

Do only one player can control 4 Vehicules? is it really a good solution?

Can I create 4 players on the same ClientConnection?



Many thanks,
Mathieu
#2
11/23/2002 (12:27 pm)
Hmmm.. a good question.

Right now it seems you'd need 4 gameconnections (or rather, something derived from), if you look at how the AI client is done that might give you some idea's for how to implement it without "connections".

Phil.
#3
11/24/2002 (3:00 pm)
Thanks for the advise, I'm working on it but the connection system is hard to understand :)

It seems to me that we can control only one object.
Do I need to make 4 "setControlObject" fonctions?

setControlObject1 -> controlling vehicule1 on GameConnection1 (using moveMap1)
setControlObject2 -> controlling vehicule2 on GameConnection2 (using moveMap2)
...

I'm not sure it's the best way to manage this...