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
17
S
8
Posts: 13
Reputation: 1,401

Post » Mon Apr 17, 2017 3:00 pm

i find the plugin expression inst.instance_vars[],
where is runtime?
B
17
S
8
Posts: 13
Reputation: 1,401

Post » Mon Apr 17, 2017 3:11 pm

i think should be runtime.vars[],i.ll test
B
17
S
8
Posts: 13
Reputation: 1,401

Post » Wed Jun 07, 2017 3:06 pm

wertt22 wrote:i think should be runtime.vars[],i.ll test

So, did you try it?
B
10
S
5
Posts: 14
Reputation: 880


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests