Game Development Community

Torque 2D Local Multiplayer - Possible?

by Oliver Wilmot · in Torque X 2D · 10/09/2011 (6:57 am) · 2 replies

I apologize in advance for the fact that this has been discussed many times before, but after reading about 30 threads, I didn't find the exact answer I was looking for. The posts were either too old, about a different engine, concerning LAN multiplayer, or about internet multiplayer. I also checked out some commercial games made with Torque 2D, but they were all 1 player.

I simply want to know; Is traditional, local multiplayer possible in Torque 2D? As in, on the same PC, same screen, for example, simply moving around 2 objects or more, in real time, on the screen with a keyboard or 2 (or more) USB pads. If the answer is yes, I guess it would be positively lovely if you could possibly tell me some further details. Like if there is a limit, such as maximum 4 players, or 8, whatever. And if implementing multiplayer is relatively hard.

But no worries if that's beyond your means. I really only need a yes or no answer, at this point, I'm not even asking HOW to do it. Thanks for your time.

#1
10/09/2011 (9:38 am)
Although I think you are posting your question in the wrong forum (should be in Torque 2D, not Torque X 2D?). With a bit of work you can do it (2 player) by splitting up the keys and creating some arrays to store information such as (x,y) co-ordinates for each player, if played on the same keyboard.

If you wanted networking, for more than two players in separate machines then looking at a sockets based approach to networking in Torque for semi/real-time might be the better option.
#2
10/10/2011 (9:50 am)
Ah, oops, sorry! Yeah that was a mistake, this question is for Torque 2D, not the X version. I don't know if I can move it, or something.

Thanks. No, I don't want networked multiplayer, just normal, classic, 2 player on one machine. Though I may look into networking at a far later date.