doForEachTrigger() explanation

For developers using the Construct 2 Javascript SDK

Post » Sat Jul 11, 2015 5:44 am

Hello, I'm developing a plugin based on Dictionary. Can anyone explain me, please, what this code does?

Code: Select all
    instanceProto.doForEachTrigger = function (current_event)
    {
        this.runtime.pushCopySol(current_event.solModifiers);
        current_event.retrigger();
        this.runtime.popSol(current_event.solModifiers);
    };


I see that inside of cf_looping conditions I have to execute the following code:

Code: Select all
var current_event = this.runtime.getCurrentEventStack().current_event;
// enter the for loop here
this.doForEachTrigger(current_event);


Thank you!
B
6
S
2
Posts: 64
Reputation: 576

Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests