VidhyutK's Forum Posts

  • 3 posts
  • Hi,

    How can I trigger an event (mouse click, key press ect) from client side code(javascript) with c2runtime object?

    (Trigger event from browser code)

    Thanks,

    Vidhyut

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • To call a custom function named LoadSolution we use this line :

    cr.plugins_.Function.prototype.acts.CallFunction("LoadSolution", []);

    but in c2runtime.js ; this.runtime comes undefined in below code :

    Acts.prototype.CallFunction = function (name_, params_)

    {

    var fs = pushFuncStack();

    fs.name = name_.toLowerCase();

    fs.retVal = 0;

    cr.shallowAssignArray(fs.params, params_);

    var ran = this.runtime.trigger(cr.plugins_.Function.prototype.cnds.OnFunction, this, fs.name);

    if (isInPreview && !ran)

    {

    ;

    }

    popFuncStack();

    };

    Any solution ?

  • Hi,

    How to use the sample on the post named "How to make multiplayer with Socket.io?" :

    How to use app.js given on left corner of the page?

    When I open SocketioExample.capx, it shows some error telling "some plugins are missing".

    How can I see something working in real?

    Please guide asap.

    Thanks,

    Vidhyut

  • 3 posts