Hi
I'm following a tutorial series to create a MMO (RPG) for a GM:Studio, I don't quite like the way UI is handle over there so I tried to port the ideia to Construct 2, one of the main things I had to worrie about when using websockets was the buffers get concatnated:
MESSAGEAMESSAGEBMESSAGEC.... [/code:22b1lh81] I had to use the first byte of each message to store the message lenght: [code:22b1lh81] 5MESSAGEA7MESSAGEB4MESSAGEC [/code:22b1lh81] this way I would know the size and seperate them: [code:22b1lh81] 5MESSAGEA 7MESSAGEB 4MESSAGEC [/code:22b1lh81] as Construct 2 uses json strings I don't know if I need to do this anymore, can anyone give me some guidance?! Thank you
Develop games in your browser. Powerful, performant & highly capable.
Have you tried Ashley Tutorial if not then here it is
https://www.scirra.com/tutorials/892/mu ... pts/page-3
Thank u very much I'll try it
One more thing, the server and client, in this example, are both made in construct! ....and I was trying to create a game with a server running natively in javascript