Schoening's Recent Forum Activity

  • Fixed.

    io.sockets.emit("message", 'Pos,' + x);

  • Do I have to work with strings?

    I need to send a Variable, and sending X as a message, sends X as a message not as the Variable X data.

    So I tried to change it a bit:

    <img src="http://imageshack.us/a/img16/1664/clientside.png" border="0" />

    And Serverside:

    var entities = [], count = 0;

    var io = require("socket.io").listen(80);

    var x = 50;

    function sendPos()

    {

        io.sockets.emit("message", x);

         

    }

    setInterval(sendPos, 1000);

    But then I get this Error:

    <img src="http://imageshack.us/a/img26/9178/localhosterror.png" border="0" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey, I am playing around with the Socket.IO.

    I am running the actions of the players on the server, in a dumb terminal kind of way, with the server running the positions and actions rather then relying on the Clients (Who can be a lying ********* information.

    Just wondering how I best should handle the time between Received Data on the Client Side.

    So that players don't stop moving while they wait for input.

    In the demo capx of Juantar I saw that he is sending the Velocity of the Moving object as well, that is pretty smart, I think that is the way to go.

    But perhaps I have forgotten something, so I would like to hear suggestions if you have some <img src="smileys/smiley1.gif" border="0" align="middle" />

    ------------------------------------------------------------------------

    Another thing is the size of the strings I am sending.

    On Stack Overflow they told me that I should send packages as small as possible;

    You're micro-managing. That's a question for TCP to handle. No matter the size of your message, your TCP implementation (probably at the OS level) will chunk it as it sees fit for transport. Unless you're sending a large amount of data (kilobytes to megabytes worth) and you need to be able to process it a little bit at a time, you don't need to worry about the chunking of data and packet size.

    But I do not know if the Socket Plugins Socket.LastDataElement(0) / (1) / (2) works if I send single strings.

    Do the Sockets last elements get updated on their own? Or does the whole thing only work while I use the Plugins SPLIT function?

  • This confuses me a lot!

    When is the Array Assigned?

    <img src="http://imageshack.us/a/img338/1745/arrayquestion.png" border="0" />

  • Nah. You can't distort the mesh yet.

    We need a plugin for it :)

  • Could you give a quick explaination how the:

    var myNumber = count++;

    Works? What does determine the count++? And can I replace it with a Facebook ID for example?

  • > Will you still provide updated versions of C2 that won't require Steam? I hope so, if nothing else the stable release versions.

    Of course - we won't accept an exclusive deal with Valve, we will only go on Steam if we can continue distributing via our own website as well.

    That should not be an issue. 3dCoat and a ton of games do this as well, they even distribute on several other platforms such as GamersGate.

  • This looks a bit more like metal :p

    But it's Voxels not Polygons.

    http://imageshack.us/a/img195/6830/renderknight.png

  • Hehe Yeah :)

    I basically know nothing about Rendering Materials in Blender. So I just did this with a few minutes of trial and error.

    I will probably Cut the mesh at the Visor and also Color it a bit :)

    Overall I am pleased since I have not made any models with 3dCoat before ^^

  • How about.

    Variable: StartButton

    Variable: Timer

    Every 0.1 second.

    StartButton = True

                  add 0.1 to Timer.

    Every Tick: Set Text to "Time: " & Timer.

  • If you are great with math you might be able to do some 3D projections. Also Check out this plugin:

    http://www.scirra.com/forum/plugin-3d-using-copperlicht_topic49881.html

    You could also create some plugins that would make it work.

    But it would be smarter to get a engine that is set up for 3D :)

    If you are a programmer check out:

    http://learningthreejs.com/

  • I would go with the size

Schoening's avatar

Schoening

Member since 24 Jan, 2012

None one is following Schoening yet!

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies