How do I get my multiplayer shooter working?

Get help using Construct 2

Post » Tue May 03, 2016 1:21 pm

Message: Miksu112 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
I'm making a 2D platformer shooter that is transforming into a multiplayer game now. I can connect to the server but Can't give control of an object to the other played. The confirmation that we are on the same room is a text changing. I'll give the capx, so can someone help?

Capx:
https://goo.gl/nPbhyg
Last edited by Miksu112 on Tue May 03, 2016 1:53 pm, edited 1 time in total.
B
8
S
2
Posts: 55
Reputation: 654

Post » Thu May 05, 2016 7:19 pm

I don't know that anyone here wants to take the time to do your job for you...
If you have a question, we can answer, but if you can't even frame the question then no one can help you except yourself.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824

Post » Sat May 14, 2016 7:44 am

I didn't want people to do it for me, I wanted people to HELP.
B
8
S
2
Posts: 55
Reputation: 654

Post » Sat May 14, 2016 9:48 pm

Miksu112 wrote:I didn't want people to do it for me, I wanted people to HELP.


I plan on making a tutorial for this later to better explain why GetBit and SetBit should always be used in a game that you might simply want to include multiplayer in if you find the time to do so. As in, even if it's not a main mechanic of the game. I would assume that by this point in your project, your main problem is that you didn't start off that way and are, instead, using basic keyboard controls as is default.

Start by changing that. Follow the Multiplayer tutorial here: https://www.scirra.com/tutorials/915/mu ... ame/page-6
And learn how GetBit and SetBit work.
Before connecting to the signalling server, sync the player object, player sprite, and playerobject.inputs and add it as a peer input value (again, follow the tutorial)
If you're controlling your player objects via GetBit and SetBit this will allow the peer to control them. But you'll want to follow the tutorial in order to learn how to identify which object belongs to the peer.
ImageImage
B
46
S
13
G
2
Posts: 253
Reputation: 6,352

Post » Sat May 14, 2016 9:50 pm

Miksu112 wrote:I didn't want people to do it for me, I wanted people to HELP.


I would also like to mention though, making a game without multiplayer in mind from the beginning, and including it later is a pain in the ass. You'll want to keep that in mind if you plan on making games that could have multiplayer in them.
ImageImage
B
46
S
13
G
2
Posts: 253
Reputation: 6,352

Post » Mon May 16, 2016 3:31 pm

Apparently AWS just pushed out a new server-side framework:
https://docs.aws.amazon.com/gamelift/la ... intro.html
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824


Return to How do I....?

Who is online

Users browsing this forum: evillair, YoHoho and 10 guests