My first online mode [Flash CS6]

21 views
Skip to first unread message

GinoSC

unread,
Dec 16, 2019, 3:18:50 AM12/16/19
to Union Platform
¡Hi there!.
Im here because i need help, im making a 2D fangame with support for 4 Player co-op, and now i want to add online support.

The thing is, this is my first time programming this in a game, and im not sure how to handle it.

First, i did a lobby for player conections, the first one is the "room master", and he auto-make a room for 3 more players max, at this point, everything works fine until the game starts.

This is because of the data synchronization.

For this, i use the "Message" function to sync the position of each player, and it kinda works, but even in a local network isn't smooth enough (0 to 5 seconds).
The same with the key inputs (0 to 7 seconds and they are 8 keys each player).
But then, i try to sync the camera with this method... but is too much, the sync by message becomes too laggy and the camera sync every 20 seconds or more.

Is there a way to send a variable directly to the server instead?.
Or maybe there is a better method to sync the game?

By the way, the fan game is this one (without netplay):

And i did it in Flash CS6 - ActionScript 3.
Thanks.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages