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
15
S
6
Posts: 12
Reputation: 1,149

Post » Mon Apr 17, 2017 3:00 pm

i find the plugin expression inst.instance_vars[],
where is runtime?
B
15
S
6
Posts: 12
Reputation: 1,149

Post » Mon Apr 17, 2017 3:11 pm

i think should be runtime.vars[],i.ll test
B
15
S
6
Posts: 12
Reputation: 1,149

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
7
S
1
Posts: 9
Reputation: 395


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 1 guest