how to pass a global variable to onCreate = function()

For developers using the Construct 2 Javascript SDK

Post » Sun Apr 16, 2017 3:20 pm

how to pass a global variable to instanceProto.onCreate = function()?
Is there an expression like global variable[0], global variable[1] can pass to instanceProto.onCreate = function(global variable[0])?
thank you very much !!!
B
13
S
5
Posts: 11
Reputation: 947

Post » Mon Apr 17, 2017 3:00 pm

i find the plugin expression inst.instance_vars[],
where is runtime?
B
13
S
5
Posts: 11
Reputation: 947

Post » Mon Apr 17, 2017 3:11 pm

i think should be runtime.vars[],i.ll test
B
13
S
5
Posts: 11
Reputation: 947


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 1 guest