Included event sheet and fast trigger

For developers using the Construct 2 Javascript SDK

Post » Sun Jun 08, 2014 4:41 pm

Hi @Ashley

I found that the fast trigger (for example, "condition: on function" ) will be got by checking event sheets in order . If all "condition: on function" are spited into event sheets, one event sheet has one "condition: on function" then including them in one main event sheet. There would be "not fast" any more since it would check all event sheets in order.
I though all included events will be put into one sheet, so that it only need to check one time to get trigger condition, to be a "fast trigger".
B
108
S
26
G
260
Posts: 4,435
Reputation: 146,195

Post » Sun Jun 08, 2014 11:15 pm

I'm not sure what you're getting at. A "fast trigger" is a trigger that only iterates conditions with a given parameter, so triggering "on function foo" only iterates "on function" conditions with the parameter "foo", rather than every "on function" condition in the project (which would slow down as projects got larger). It doesn't really have anything to do with ordering or event sheet includes IIRC.
Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,464


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 1 guest