Pass parameter to runtime trigger?

Get help using Construct 2

Post » Fri May 24, 2013 12:40 am

Is there a better way of doing this?? I just want to pass (in this case) "10" to "myFunction".

[code]Acts.prototype.Connect = function () {
    var self = this;
    // ... connection stuff
    this.connection.on('error', function() {
        self.someVar = 10;
        self.runtime.trigger(pluginProto.cnds.myFunction, self);
    });
});
[/code]JoshWegener2013-05-24 00:42:57
B
6
Posts: 35
Reputation: 370

Post » Fri May 24, 2013 3:37 am

bump?
B
6
Posts: 35
Reputation: 370


Return to How do I....?

Who is online

Users browsing this forum: GSquadron, jeffige, MarkThomas, MisterAqua, Nifl, paala, Yahoo [Bot] and 23 guests