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
11
S
4
G
1
Posts: 158
Reputation: 1,328

Post » Sun Jun 14, 2015 2:51 am

B
109
S
27
G
278
Posts: 4,483
Reputation: 155,426

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
11
S
4
G
1
Posts: 158
Reputation: 1,328


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests