Velojet's Forum Posts

  • ... and an example in my platform tutorial + 'Health' as a bonus :)

  • Interesting, but ...

    ... Dunno if this works for games created in Construct ...t doesn't. Construct 2 users are not directly writing JavaScript. Chrome Live Editor could be used to modify the C2 runtime on the fly, but you really don't want to be doing that <img src="smileys/smiley37.gif" border="0" align="middle" />

  • ... Can I use C2 coupled with SQL server to create an online mmorpg-like game?

    IMO, SQL Server is not a good match for multiplayer games - in that context, its overhead would be too high, leading to a lag that impacts on responsiveness.

    A couple of better matches:

    NodeJS - have a look at my Multiplayer plugin/behavior.

    Photon Server/Cloud - specifically designed to support multiplayer gaming. Have a look at my Photon Server plugin. I'm currently working on a Photon Cloud plugin/behavior.

  • dsjtuj

    With posts, you can do this for yourself by clicking on the 'Message' link on the green banner at the top of the thread.

  • [Snap! R0J0hound got in seconds before me!]

    Have a look at lines 50-59 of the browser runtime - you'll see that these two conditions are triggered by registered event listeners:

    window.addEventListener("online", function() {
      self.runtime.trigger(cr.plugins_.Browser.prototype.cnds.OnOnline, self);
    });
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • roveend3

    Thanks for the update.

    Could you please post the link here, for future reference? Thanks!

  • I will dedicate my first multiplayer game to you if you pull that off!

    BigMistake

    Well, that's certainly an incentive! I'm making progress, but slowly - having to fit development in between work projects :(

  • Ashley

    A superb explanation of Scirra's smart decisions! What about making it a blog post? It really deserves more visibility than it gets in this thread.

    Let more people know how much they're benefitting from the greatest hockey players in the business ;)

  • roveend3

    See my 08 Aug 2012 post in this thread.

  • I watched your Plugin tutorial and it was a nice intro. :) Construct 2 seems very easy to extend that way!

    Cowdozer

    Thanks! Yes, C2's extensibility through plugins is one of its attractive features. I haven't used a regex in any of my plugins, though - yet ;)

    briermay

    Another of C2's attractive features is the way in which, as GeometriX says, it will always use the instance of an object that is picked by the condition of an event - without any more work on your part. (Don't be misled by the earlier discussion in this thread, which revolved around a rather esoteric problem.)

  • Cowdozer

    Definitely not a programming language in the same category as C, Java, Javascript, Lisp and SQL.In fact, I think you'd be hard put to find any authority describing it as a language.

    ... I'm not sure if SQL has RegEx support ...

    See, e.g., www.ibm.com/developerworks, www.regular-expressions.info, ...

  • The Javascript Photon Cloud SDK has just been released, if anyone is still interested.

    DeMayunn

    Yes, I refer to it in my previous post (two above yours). I'm in contact with the Photon developers and am starting work on turning my C2 PhotonPlayer plugin into a behavior to access the Photon Cloud.

  • Yung

    Yes, I'm in contact with the Photon developers and am starting work on a C2 behavior/plugin for the Photon Cloud.

  • Cowdozer

    Thanks for keeping this discussion alive!

    RegEx a language? Isn't it a pattern matching mechanism that's implemented in many languages (even SQL)?

  • Velojet

    No worries, I'm going to explore your code and aim to help you achieve this goal.

    aceofpack

    Great! Very happy to have your interest and involvement!

    ... This means that a method of generating code to be inserted server side can be dreamt of. This is what velojet is actually doing here. He's used code from the runtime that he could run on the server.

    Perhaps I need to clarify this. What happens is that my server code uses NowJS callbacks that are implemented in the C2 runtime. There's no code from the runtime that runs on the server.

    But is this plugin only made for ppl who have a server, or is this a plugin to connect to a already setup server?

    mathiaswing

    Ppl need to set up a server for the C2 runtime to communicate with - but I provide all the code needed to implement that (using the NodeJS and NowJS libraries (see my OP)).

    What if i use a cocoonJS plugin? Isn't cocoonJS supposed to support multiplayer gaming?

    Haven't used CocoonJS myself, but my understanding is that it simply uses WebSockets to support client<->client multiplaying, without the intervention of an authoritative server to manage and arbitrate (and to red-card cheaters).