Make online (server based) games?

Get help using Construct 2

Post » Tue Feb 19, 2013 9:56 pm

I am making a fight game like street fighter etc.
But why should people play it there is enough games in 2D fight category on internet.
Thats why i decided to make my game online with rooms etc. Its a huge project but i dont want to begin with construct 2 if online is not posible. I cannot find the answer to my question. My question is : Is it posible to make online games with construct 2? Thanks for reading my topic have a nice day..
B
31
S
10
G
2
Posts: 310
Reputation: 5,426

Post » Tue Feb 19, 2013 10:00 pm

Not yet, there another solution you can use websocket but the latency isn't perfect, we have to wait when webRTC or something like that is released
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Post » Tue Feb 19, 2013 10:10 pm

I think a real time fight game would be to much lag even real companies cannot handle it. But its not even posible to make a little chess game with online mode? Very disappointing...
B
31
S
10
G
2
Posts: 310
Reputation: 5,426

Post » Tue Feb 19, 2013 10:28 pm

Of course you could make a online chess game (or any turn based game). You wouldn't even need websockets, ajax would be enough.

Edit:

@Joannesalfa
Are they planning to make a webRTC plugin for Construct 2?Dayjay2013-02-19 22:32:42
B
15
S
4
G
2
Posts: 16
Reputation: 2,129

Post » Tue Feb 19, 2013 10:49 pm

@Dayjay

Do you know a tutorial how to make a turn based online game by ajax ?
B
31
S
10
G
2
Posts: 310
Reputation: 5,426

Post » Tue Feb 19, 2013 11:10 pm

Just search for 'ajax multiplayer', 'turn based multiplayer' or something.

Depending on how good your programming knowledge is, it's pretty simple.

Very simplified Example for a chess game:

After a player finishes his turn he sends the move he made to the server. Then you would set the player state to "listen".

The second player (or the player who does "listen") does ask every X seconds if the other player has finished his turn. If yes, get his turn he made and set the state of the second player to "playing".

Of course you would need some anti cheating measures and you need to validate the move you received.

It would be better if WebSocket would support UDP or we had something like webRTC, CU-RTC .
B
15
S
4
G
2
Posts: 16
Reputation: 2,129


Return to How do I....?

Who is online

Users browsing this forum: heliogame, Vodakman and 27 guests