breackzin's Forum Posts

  • Bumping for the glory!

  • >

    > Every 0,05 seconds:>Send ("alldata," & "," & id & "," & x & "," & y)

    >

    For the server part or a client? I'm a little misunderstood.

    If I will send some kind of data to the server, how can I split it

    Your client. You gonna delete the pick, the "is moving?" condition and put a clear "every 0,05"... as I said.

    The server side gonna be something like this:

    socket.on("message", function (data) {

    var new_data = data.split(',');

            if (new_data[0] == 'alldata') {

                id = new_data[1];

                x = new_data[2];

                y = new_data[3];

                

                socket.broadcast.emit("message",

                  ?'alldata,' + id + ',' + x + ',' + y);

            }

  • You are sending 3 times every 0,01 seconds and that's too much. You don't even need it. Get one 'Send' with all the data that you wanna out.

    You should send this kind of data about every 0,02 seconds max.

    What about a sprite for your player and other for online players? It would help removing that first pick from your code and the 8direction "is moving?", also. You would be able to use the clean:

    Every 0,05 seconds:>Send ("alldata," & "," & id & "," & x & "," & y)

    The second part, the one about managing received data, looks just fine.

    By the way, what language do you speak? Are you deep into socket.io? I have problems myself about hosting it. Could you help me?

    vladoss

  • Bumping for wisdom!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Get it tested and see for yourself.

  • vladoss

  • Every tick = 0,001 seconds or less... so the lag begins with huge amount of data been received.

    Instead, use every 0,05 seconds.

    Sometimes unfocusing the window in each the game is playing can also lag the communication.

  • JohnnySheffield rexrainbow jayderyu

    We are now trying to get an alpha version of our server on Heroku or other free host, so we could have more chance to improve our socket.io server and also get some feedback.

    The problem is that we are not being success in the matter and we don't know who and what to ask.

    Do you guys have any idea? I know about rex in this matter. ANY advice?

  • Never use connect: on playable layer.

  • BUMP IT UP!

  • I've searched without success.

    Also, I know about other game engines and how construct 2 was not really made for this.

    Nevertheless, I would like to implement some simple features in the name of immersible cinematics.

    Anything about it? Did someone already attempted?

  • Tekniko , my friend, your code to the animation is broken, not the animation itself. After a jump you got stuck on jumping animation. Get a condition on fall or other plataform behavior related to solve the issue.

  • WoW, just, WoW!

    Best wishes for this initiative.

  • Jump animation is broken.

    Otherwise, everything looks just fine.

    Nicely done.

  • Nice idea and graphics.

    Wanna profit? Turn it on educative software by adding new objects and sound of its names, or turn the objects into letters.

    Abc...