How do I Edit the Event Sheet at runtime?

For developers using the Construct 2 Javascript SDK

Post » Thu Oct 16, 2014 3:23 pm

I'm trying to create a plugin where Events and Actions get set after being created, during run time.

How do I go about doing this in the Javascript of my plugin?
How do I edit the Event sheet at runtime?
B
6
S
2
Posts: 16
Reputation: 494

Post » Thu Oct 16, 2014 5:26 pm

You can't. Events are statically analysed and optimised at startup for performance reasons, so it would be extremely difficult to support this. Why on earth would you want to do that anyway? Morphing code is a really hard way to do anything useful.
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,145

Post » Fri Oct 17, 2014 4:38 am

You might design functions in event sheet, and call them at run-time by command strings, which could be read from external file, like this 3rd plugin.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 1 guest