multiple instances of a game communicate locally?

Get help using Construct 2

Post » Thu Dec 12, 2013 9:09 am

Hi everyone,

A client I made a game for (for PC only, non web)is hoping I can semi-quickly make a new version of the game that would allow for 2 to 6 player split screen.

I dont want to totally reprogram the game, so I'm hoping there could be a way compatible with node webkit that would allow me to have several instances of the game each communicate with one another (like for player positions for racing etc.)...that possible?

thanks,
Mike
B
49
S
9
G
4
Posts: 426
Reputation: 7,041

Post » Thu Dec 12, 2013 1:32 pm

Same pc?
I can tell you using multiple key presses is not a good idea. Most keyboards don't allow much over 2 or 3, and or certain keys at a time.

Also multiple instances on the same pc would have to use the net regardless of the method, and there might be issues with them all using the same ip.

There are a couple plugins that use the net, peerjs, and firebase, but it would be fairly hard to set up.
Image ImageImage
B
169
S
50
G
170
Posts: 8,292
Reputation: 108,728

Post » Thu Dec 12, 2013 2:04 pm

thanks for the feedback newt.

Yes, Same PC..using keyboard, yes..

..so it seems theres no good way to do this? no special node-webkit related object or action etc?
B
49
S
9
G
4
Posts: 426
Reputation: 7,041

Post » Thu Dec 12, 2013 2:36 pm

Haven't checked, but gamepads should work on node-webkit.

https://www.scirra.com/manual/143/gamepad
Image ImageImage
B
169
S
50
G
170
Posts: 8,292
Reputation: 108,728

Post » Thu Dec 12, 2013 9:09 pm

they do, but sadly only modern ones like xbox controllers...my client must use old format d-pads(because they use custom input hardware based on old dpads like the very old sidewinders) which are not supported it would seem by node-webkit or browsers. :(

thanks for the help and cheers,
Mike
B
49
S
9
G
4
Posts: 426
Reputation: 7,041

Post » Thu Dec 12, 2013 9:26 pm

I think there's a program that will let you use a dpad instead.
Can't remember the name, perhaps someone on the forum can.
Image ImageImage
B
169
S
50
G
170
Posts: 8,292
Reputation: 108,728


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi and 22 guests