Check in behavior code at which instance plugin?

For developers using the Construct 2 Javascript SDK

Post » Sat Jun 13, 2015 6:47 pm

How can I check in behavior code the instance plugin?
I know the instance has the plugin object in it (inst.type.plugin), but how to compare? Is there a possiblity in JavaScript to do it directly? Object name to sting?
Plugins dont have a for all exist name string or something else in, or did I miss something?

In Editor it has:
Image
Sorry for my bad english, but I really do my best! And use and check with Google Translator.
B
10
S
4
G
1
Posts: 158
Reputation: 1,303

Post » Sun Jun 14, 2015 2:51 am

B
108
S
26
G
258
Posts: 4,430
Reputation: 145,179

Post » Sun Jun 14, 2015 3:00 am

Ahhh "instanceof".
Time to learn JavaScript! :D
Thank you very much!
Sorry for my bad english, but I really do my best! And use and check with Google Translator.
B
10
S
4
G
1
Posts: 158
Reputation: 1,303


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 1 guest